Index: core/units/helpers/permissions_helper.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- core/units/helpers/permissions_helper.php (revision 15716) +++ core/units/helpers/permissions_helper.php (revision ) @@ -117,6 +117,10 @@ // universal "debug" permission return true; } + elseif ( $perm_name == 'admin' && $this->Application->isAdminUser ) { + // any logged-in admin user will suffice + return true; + } $perm_name = $section.'.'.$perm_name; $perm_status = $this->CheckPermission($perm_name, 1); @@ -181,7 +185,7 @@ static $perm_mapping = Array( 'add' => 'ADD', 'add.pending' => 'ADD.PENDING', 'edit' => 'MODIFY', 'edit.pending' => 'MODIFY.PENDING', 'delete' => 'DELETE', 'view' => 'VIEW', - 'debug' => 'DEBUG' + 'debug' => 'DEBUG', 'admin' => 'ADMIN', ); $top_prefix = $event->getEventParam('top_prefix'); @@ -257,6 +261,10 @@ if ( $perm_name == 'debug' && $this->Application->isDebugMode(false) ) { // universal "debug" permission + return true; + } + elseif ( $perm_name == 'admin' && $this->Application->isAdminUser ) { + // any logged-in admin user will suffice return true; } \ No newline at end of file