From 766c63120303df63ddf49439190eb557123d89d1 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 26 Nov 2008 10:20:36 +0000 Subject: [PATCH] Udpated self acl check in class_userinfo.inc - git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13037 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_userinfo.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.30.2