index c1c49ac40ddbb516ffd1e4960795dfe68ff8d0a4..e550a47d83aa1d08a2be8a835eae9ca96b51c398 100644 (file)
var $ocMapping= array();
var $groups= array();
var $result_cache =array();
var $ocMapping= array();
var $groups= array();
var $result_cache =array();
- var $ignoreACL = FALSE;
+ var $ignoreACL = NULL;
var $ACLperPath = array();
var $ACLperPath_usesFilter = array();
var $ACLperPath = array();
var $ACLperPath_usesFilter = array();
$this->uid= $attrs['uid'][0];
$this->ip= $_SERVER['REMOTE_ADDR'];
$this->uid= $attrs['uid'][0];
$this->ip= $_SERVER['REMOTE_ADDR'];
- $this->ignoreACL = ($this->config->get_cfg_value("ignoreAcl") == $this->dn);
-
/* Initialize ACL_CACHE */
$this->reset_acl_cache();
}
/* Initialize ACL_CACHE */
$this->reset_acl_cache();
}
/* Check for correct category and class values... */
if(strpos($object,'/') !== FALSE){
/* Check for correct category and class values... */
if(strpos($object,'/') !== FALSE){
- list($aclCategory, $aclClass) = split("/", $object);
+ list($aclCategory, $aclClass) = preg_split("!/!", $object);
}else{
$aclCategory = $object;
}
}else{
$aclCategory = $object;
}
- if($this->config->get_cfg_value("displayerrors") == "true"){
+ if($this->config->boolValueIsTrue("core","developmentMode")){
+
if(!isset($this->ocMapping[$aclCategory])){
trigger_error("Invalid ACL category '".$aclCategory."'! ({$object})");
return("");
if(!isset($this->ocMapping[$aclCategory])){
trigger_error("Invalid ACL category '".$aclCategory."'! ({$object})");
return("");
trigger_error("Invalid ACL class '".$aclClass."'! ({$object})");
return("");
}
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})");
$plInfo = call_user_func(array($aclClass, 'plInfo'));
if(!empty($attribute) && !isset($plInfo['plProvidedAcls'][$attribute])){
trigger_error("Invalid ACL attribute '".$attribute."'! ({$object})");
}
/* Global ACL? */
}
/* Global ACL? */
+ if (isset($subacl['acl']['all/all'][0])){
+ $acl= $this->mergeACL($acl, $subacl['type'], $subacl['acl']['all/all'][0]);
+ continue;
+ }
+
+ /* Global ACL? - Old style global ACL - Was removed since class_core.inc was created */
if (isset($subacl['acl']['all'][0])){
$acl= $this->mergeACL($acl, $subacl['type'], $subacl['acl']['all'][0]);
continue;
if (isset($subacl['acl']['all'][0])){
$acl= $this->mergeACL($acl, $subacl['type'], $subacl['acl']['all'][0]);
continue;
}
}
}else{
}
}
}else{
- if($this->config->get_cfg_value("displayerrors") == "true"){
+ if($this->config->boolValueIsTrue("core","developmentMode")){
trigger_error("Invalid type of category ".$category);
}
$acl = "";
trigger_error("Invalid type of category ".$category);
}
$acl = "";
*/
function ignore_acl_for_current_user()
{
*/
function ignore_acl_for_current_user()
{
+ if($this->ignoreACL === NULL){
+ $this->ignoreACL = ($this->config->get_cfg_value("core","ignoreAcl") == $this->dn);
+ }
return($this->ignoreACL);
}
return($this->ignoreACL);
}