From fa2419d64c06e445618a7317deb6b7c47ee5f5ea Mon Sep 17 00:00:00 2001 From: cajus Date: Wed, 29 Oct 2008 16:14:34 +0000 Subject: [PATCH] Updated cleanACL git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12812 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_userinfo.inc | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/gosa-core/include/class_userinfo.inc b/gosa-core/include/class_userinfo.inc index cb1d28122..e89e6da12 100644 --- a/gosa-core/include/class_userinfo.inc +++ b/gosa-core/include/class_userinfo.inc @@ -421,7 +421,6 @@ class userinfo accessible department) */ function get_module_departments($module, $skip_self_acls = FALSE ) { - /* If we are forced to skip ACLs checks for the current user then return all departments as valid. */ @@ -432,7 +431,6 @@ class userinfo /* Use cached results if possilbe */ $ACL_CACHE = session::get('ACL_CACHE'); - if(!is_array($module)){ $module = array($module); } @@ -530,10 +528,10 @@ class userinfo { foreach ($acl as $key => $value){ - /* Continue, if value is empty or permanent */ - if ($value == "" || $value == "p") { - continue; - } + /* Continue, if value is empty or permanent */ + if ($value == "" || $value == "p") { + continue; + } /* Reset removes everything but 'p' */ if ($reset && $value != 'p'){ -- 2.30.2