From da79552b33730e4d8931b32dcaf5925226f2762c Mon Sep 17 00:00:00 2001 From: cajus Date: Mon, 17 Jul 2006 08:26:52 +0000 Subject: [PATCH] Updated get_department stuff for changed acl code git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4176 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_userinfo.inc | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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; + } + } } } -- 2.30.2