includes/pageutils.php
changeset 511 f88c8c79d784
parent 481 07bf15b066bc
child 512 13532b0a223f
equal deleted inserted replaced
510:290fa071842a 511:f88c8c79d784
  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         );