git.shiar.nl
/
minimedit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
c373a1d
)
foto: fix admin indication of unrestricted access
author
Mischa POSLAWSKY
<perl@shiar.org>
Wed, 18 Nov 2020 15:06:52 +0000
(16:06 +0100)
committer
Mischa 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
patch
|
blob
|
history
diff --git
a/foto/index.php
b/foto/index.php
index 4b61f37c08a36830db868574cc6ba1984d0bec4d..89f5d060a74a6a878156ffa68019f8ce92594c9f 100644
(file)
--- 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 <a href="%s">%s</a>',