fix small things

This commit is contained in:
Ricsi
2020-07-12 14:00:30 +02:00
parent 3789ec14e0
commit 2d629c0f3f

View File

@@ -106,7 +106,7 @@ class page {
$toFind = $this->get_subpage();
}
$subPage = $this->findInStructure($toFind, $structure);
if ('exception' != $subPage && !$user->has_authority_by_name($subPage)) {
if ((!empty($user) && $user->is_logged_in()) && 'exception' != $subPage && !$user->has_authority_by_name($subPage)) {
include('include_access_denied.php');
return;
}