diff options
| -rw-r--r-- | app/controllers/settings/notification.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/settings/notification.php b/app/controllers/settings/notification.php index e3efb7b..a5aa276 100644 --- a/app/controllers/settings/notification.php +++ b/app/controllers/settings/notification.php @@ -37,7 +37,7 @@ class Settings_NotificationController extends Settings_SettingsController throw new AccessDeniedException($message); } - if (!$GLOBALS['auth']->is_authenticated() || $GLOBALS['perm']->have_perm('admin')) { + if (!auth()->isAuthenticated() || $GLOBALS['perm']->have_perm('admin')) { throw new AccessDeniedException(); } |
