diff --git a/app/controllers/settings/notification.php b/app/controllers/settings/notification.php index e3efb7b883d0aad7dbfa55192cdaf3bdc8618b80..a5aa276c37f62df6a72f23b1d2994c4ef2b8836d 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(); }