X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/568cd50d803ff41ea302e3c2affb9e48fad3e4fd..dcfc97617cdb6307e14752d7fb10f00733737616:/foto/index.php?ds=inline
diff --git a/foto/index.php b/foto/index.php
index 89f5d06..a97ec1c 100644
--- a/foto/index.php
+++ b/foto/index.php
@@ -1,7 +1,7 @@
admin('foto')) {
+if ($User->admin('foto')) {
$access = 'ð Openbaar';
if (!empty($PageAccess)) {
$access = "ð Bewoners";
@@ -64,7 +64,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 = "";