-$rootdir = $Page . $Args;
-
-if (!empty($User['admin'])) {
- $access = '🔓 Openbaar';
- if (isset($PageAccess)) {
- $access = "🔒 Bewoners";
- if ($PageAccess != $rootdir) {
+if ($User->admin('foto')) {
+ if ($Page->restricted) {
+ $access = '<span class="icon icon-locked">🔒</span> Bewoners';
+ if ($Page->restricted != $rootdir) {