From 568cd50d803ff41ea302e3c2affb9e48fad3e4fd Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Wed, 18 Nov 2020 16:06:52 +0100 Subject: [PATCH] foto: fix admin indication of unrestricted access 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/foto/index.php b/foto/index.php index 4b61f37..89f5d06 100644 --- a/foto/index.php +++ b/foto/index.php @@ -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 %s', -- 2.30.0