aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/controllers/settings/notification.php2
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();
}