foto: fix admin indication of unrestricted access
authorMischa POSLAWSKY <perl@shiar.org>
Wed, 18 Nov 2020 15:06:52 +0000 (16:06 +0100)
committerMischa POSLAWSKY <perl@shiar.org>
Wed, 18 Nov 2020 15:06:52 +0000 (16:06 +0100)
Misdetected since variable is defined false since commit v4.3-3-ged38c6a767
(2020-02-04) [page: article method to find handler code].

foto/index.php

index 4b61f37c08a36830db868574cc6ba1984d0bec4d..89f5d060a74a6a878156ffa68019f8ce92594c9f 100644 (file)
@@ -3,7 +3,7 @@ $rootdir = $Page . $Args;
 
 if ($User and $User->admin('foto')) {
        $access = '🔓 Openbaar';
-       if (isset($PageAccess)) {
+       if (!empty($PageAccess)) {
                $access = "🔒 Bewoners";
                if ($PageAccess != $rootdir) {
                        $access .= sprintf(' vanaf <a href="%s">%s</a>',