Fixed Errorhandling when switching between Users to display correct Errormessages

This commit is contained in:
Andreas Österreicher
2019-04-12 15:27:17 +02:00
parent 02bab0b301
commit b63809abfd
2 changed files with 5 additions and 8 deletions
+4
View File
@@ -80,6 +80,10 @@ class AuthLib
setSessionElement(self::SESSION_NAME, self::SESSION_AUTH_OBJ, getData($loginAS));
}
}
else
{
$loginAS = error('It is not allowed to switch to this user', AUTH_NOT_AUTHENTICATED); // not authenticated by default
}
}
else
{