====== Display ACLs in page footer ====== Sometimes, it is interesting to know, who is allowed to view the current page. Checking this in the ACL plugin is difficult and only possible for admins. By patching your favorite [[:Template|template]], you can display this information in the page footer. Remarks, suggestions etc. go to . ===== Instructions ===== Somewhere in your template's ''main.php'', you'll find these lines (line 101-108 in the default template):
Replace these lines with the following code: 0) return; // page is visible to everyone $list = array(); foreach ($page_acls as $user => $right) { if ($right > 0 && $user != "@admin" ) // admins can see everything array_push($list,$user); } if (count($list)) { sort($list); print "(page visible to: "; print join(', ',$list); print ")"; } // Uncomment this, if you want to display users/groups who cannot access this page, too: /* $list = array(); foreach ($page_acls as $user => $right) { if ($right == 0) array_push($list,$user); } if (count($list)) { sort($list); print "(page hidden to: "; print join(', ',$list); print ")"; } */ } ?>