X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/568cd50d803ff41ea302e3c2affb9e48fad3e4fd..063591ce4b064ed149aad58f0c619895c9ae4014:/foto/index.php?ds=sidebyside
diff --git a/foto/index.php b/foto/index.php
index 89f5d06..0ce4d20 100644
--- a/foto/index.php
+++ b/foto/index.php
@@ -1,16 +1,18 @@
admin('foto')) {
- $access = 'ð Openbaar';
+if ($User->admin('foto')) {
if (!empty($PageAccess)) {
- $access = "ð Bewoners";
+ $access = '🔒 Bewoners';
if ($PageAccess != $rootdir) {
$access .= sprintf(' vanaf %s',
"/$PageAccess", pathinfo($PageAccess, PATHINFO_FILENAME)
);
}
}
+ else {
+ $access = '🔓 Openbaar';
+ }
print "\n\n";
}
@@ -64,7 +66,7 @@ if ($imgs = glob("$rootdir/*", GLOB_ONLYDIR)) {
$html = '
';
$html .= "$album";
- if (empty($User) and file_exists("$path/.private")) {
+ if (!$User->login and file_exists("$path/.private")) {
$html = ''.$html.'';
}
$html = "$html";