X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/ce951ad9579fd96a7ba185f6d7cbd99bd37b9ec4..882347cba815e99ba8e7ad28d077420aa986e7c5:/foto/index.php diff --git a/foto/index.php b/foto/index.php index ee37df1..f438cb9 100644 --- a/foto/index.php +++ b/foto/index.php @@ -3,7 +3,7 @@ $intro = ob_get_clean(); $rootdir = $Page . $Args; -if (!empty($User['admin'])) { +if ($User and $User->admin) { $access = '🔓 Openbaar'; if (isset($PageAccess)) { $access = "🔒 Bewoners";