From: hickert Date: Wed, 26 Nov 2008 10:20:36 +0000 (+0000) Subject: Udpated self acl check in class_userinfo.inc X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=766c63120303df63ddf49439190eb557123d89d1;p=gosa.git Udpated self acl check in class_userinfo.inc - git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13037 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_userinfo.inc b/gosa-core/include/class_userinfo.inc index 08e232de7..699c7151f 100644 --- a/gosa-core/include/class_userinfo.inc +++ b/gosa-core/include/class_userinfo.inc @@ -422,7 +422,7 @@ class userinfo /* Self ACLs? */ - if($dn != $this->dn && isset($subacl['acl'][$object][0]) && strpos($subacl['acl'][$object][0],"s")){ + if($dn != $this->dn && isset($subacl['acl'][$object][0]) && (strpos($subacl['acl'][$object][0],"s") !== FALSE)){ continue; } @@ -545,7 +545,7 @@ class userinfo foreach($info['acl'] as $cat => $data){ /* Skip self acls? */ - if($skip_self_acls && isset($data['0']) && strpos($data['0'], "s")) continue; + if($skip_self_acls && isset($data['0']) && (strpos($data['0'], "s") !== FALSE)) continue; if(preg_match("/^".preg_quote($mod, '/')."/",$cat)){ $found =TRUE; break;