diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2024-12-16 09:32:29 +0100 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2024-12-16 09:32:37 +0100 |
| commit | 1e707178d10150dbaff5c7555342ec12fb097cef (patch) | |
| tree | 32f5ef874e97d24c27e0bf8c2c93bda5c4e209e9 | |
| parent | 43450d01707fd70698a325609ac08659879b72a0 (diff) | |
fix error on settings notification page, re #155
| -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(); } |
