diff --git a/app/Http/Controllers/AccountController.php b/app/Http/Controllers/AccountController.php index 8008dce28388..fe0702d9588a 100644 --- a/app/Http/Controllers/AccountController.php +++ b/app/Http/Controllers/AccountController.php @@ -1220,6 +1220,13 @@ class AccountController extends BaseController $user->email = trim(strtolower(Input::get('email'))); $user->phone = trim(Input::get('phone')); + if ( ! Auth::user()->is_admin) { + $user->notify_sent = Input::get('notify_sent'); + $user->notify_viewed = Input::get('notify_viewed'); + $user->notify_paid = Input::get('notify_paid'); + $user->notify_approved = Input::get('notify_approved'); + } + if (Utils::isNinja()) { if (Input::get('referral_code') && !$user->referral_code) { $user->referral_code = $this->accountRepo->getReferralCode(); diff --git a/resources/views/accounts/notifications.blade.php b/resources/views/accounts/notifications.blade.php index e7260784d346..e0199063270e 100644 --- a/resources/views/accounts/notifications.blade.php +++ b/resources/views/accounts/notifications.blade.php @@ -7,22 +7,8 @@ {!! Former::open()->addClass('warn-on-exit') !!} {{ Former::populate($account) }} - {{ Former::populateField('notify_sent', intval(Auth::user()->notify_sent)) }} - {{ Former::populateField('notify_viewed', intval(Auth::user()->notify_viewed)) }} - {{ Former::populateField('notify_paid', intval(Auth::user()->notify_paid)) }} - {{ Former::populateField('notify_approved', intval(Auth::user()->notify_approved)) }} -