Code

Optimized ALC validation
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 26 May 2010 06:38:10 +0000 (06:38 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 26 May 2010 06:38:10 +0000 (06:38 +0000)
-Do not check for class '0' it cannot exist.

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18699 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_userinfo.inc

index c69ef528ea0a9a759db25124bbff2f7feba9d6e5..4d21c9cb3737f100ec1e1d0e9da36555fb50a9e8 100644 (file)
@@ -379,7 +379,7 @@ class userinfo
             trigger_error("Invalid ACL class '".$aclClass."'! ({$object})");
             return("");
         }
-        if(isset($aclClass) &&class_available($aclClass)){
+        if(isset($aclClass) && $aclClass != '0' && class_available($aclClass)){
             $plInfo = call_user_func(array($aclClass, 'plInfo'));
             if(!empty($attribute) && !isset($plInfo['plProvidedAcls'][$attribute])){
                 trigger_error("Invalid ACL attribute '".$attribute."'! ({$object})");