Skip to content
Snippets Groups Projects
Commit 1e707178 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

fix error on settings notification page, re #155

parent 43450d01
No related branches found
No related tags found
No related merge requests found
...@@ -37,7 +37,7 @@ class Settings_NotificationController extends Settings_SettingsController ...@@ -37,7 +37,7 @@ class Settings_NotificationController extends Settings_SettingsController
throw new AccessDeniedException($message); 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(); throw new AccessDeniedException();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment