Пример #1
0
 static function isActionGlobalAllowed($oUser, $sAction)
 {
     if (AnwAction::isAdminAction($sAction)) {
         $bReturn = self::isAdminAllowed($oUser);
     } else {
         if (AnwAction::isPublicAction($sAction)) {
             $bReturn = true;
         } else {
             if (AnwAction::isMagicAclAction($sAction)) {
                 return false;
                 //we should never go here, this test is just in case of...
             }
             $bReturn = self::getDriver()->isActionGlobalAllowed($oUser, $sAction) || self::isAdminAllowed($oUser);
             //admins have full rights everywhere
         }
     }
     return $bReturn;
 }