equal
deleted
inserted
replaced
1587 public static function acl_editor($parms = Array()) |
1587 public static function acl_editor($parms = Array()) |
1588 { |
1588 { |
1589 global $db, $session, $paths, $template, $plugins; // Common objects |
1589 global $db, $session, $paths, $template, $plugins; // Common objects |
1590 global $lang; |
1590 global $lang; |
1591 |
1591 |
1592 if(!$session->get_permissions('edit_acl') && $session->user_level < USER_LEVEL_ADMIN) |
1592 if(!$session->get_permissions('edit_acl') && ( $session->user_level < USER_LEVEL_ADMIN || !defined('ACL_ALWAYS_ALLOW_ADMIN_EDIT_ACL')) ) |
1593 { |
1593 { |
1594 return Array( |
1594 return Array( |
1595 'mode' => 'error', |
1595 'mode' => 'error', |
1596 'error' => $lang->get('acl_err_access_denied') |
1596 'error' => $lang->get('acl_err_access_denied') |
1597 ); |
1597 ); |