From: cajus Date: Mon, 17 Jul 2006 08:26:52 +0000 (+0000) Subject: Updated get_department stuff for changed acl code X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=da79552b33730e4d8931b32dcaf5925226f2762c;p=gosa.git Updated get_department stuff for changed acl code git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4176 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/class_userinfo.inc b/include/class_userinfo.inc index d7c1fec4b..447b0016c 100644 --- a/include/class_userinfo.inc +++ b/include/class_userinfo.inc @@ -233,8 +233,16 @@ class userinfo /* Extract all relevant objects for this module from plist */ foreach ($plist->info as $object => $info){ - if (isset($info['plDepends']['objectClass']) && $info['plDepends']['objectClass'] == $module){ - $objects[$object]= $object; + foreach ($info['plCategory'] as $idx => $data){ + if (preg_match('/^[0-9]+$/', $idx)){ + if ($data == $module){ + $objects[$object]= $object; + } + } else { + if ($idx == $module){ + $objects[$object]= $object; + } + } } }