includes/pageutils.php
changeset 511 f88c8c79d784
parent 481 07bf15b066bc
child 512 13532b0a223f
--- a/includes/pageutils.php	Wed Mar 26 16:51:42 2008 -0400
+++ b/includes/pageutils.php	Wed Mar 26 20:20:22 2008 -0400
@@ -1589,7 +1589,7 @@
     global $db, $session, $paths, $template, $plugins; // Common objects
     global $lang;
     
-    if(!$session->get_permissions('edit_acl') && $session->user_level < USER_LEVEL_ADMIN)
+    if(!$session->get_permissions('edit_acl') && ( $session->user_level < USER_LEVEL_ADMIN || !defined('ACL_ALWAYS_ALLOW_ADMIN_EDIT_ACL')) )
     {
       return Array(
         'mode' => 'error',