Commit ca82647a authored by Thomas Löffler's avatar Thomas Löffler
Browse files

[BUGFIX] Check for BE_USER object

parent 135ab95c
......@@ -54,7 +54,7 @@ class RestrictModulesHook implements SingletonInterface
public function postUserLookUp(array $params, AbstractUserAuthentication $pObj)
if (PasswordExpirationUtility::isBeUserPasswordExpired()) {
if ($GLOBALS['BE_USER'] && PasswordExpirationUtility::isBeUserPasswordExpired()) {
// remove admin rights, because otherwise we can't restrict access to the modules
$GLOBALS['BE_USER']->user['admin'] = 0;
// this grants the user access to the modules
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment