aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/settings
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2024-12-16 09:32:29 +0100
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2024-12-16 09:32:37 +0100
commit1e707178d10150dbaff5c7555342ec12fb097cef (patch)
tree32f5ef874e97d24c27e0bf8c2c93bda5c4e209e9 /app/controllers/settings
parent43450d01707fd70698a325609ac08659879b72a0 (diff)
fix error on settings notification page, re #155
Diffstat (limited to 'app/controllers/settings')
-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();
}