From 881096841de0fd55d5198d9fb5acd788e7c050da Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 26 May 2008 10:51:26 +0000 Subject: [PATCH] Fixed spacing action icons. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11000 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../plugins/admin/users/class_divListUsers.inc | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/gosa-core/plugins/admin/users/class_divListUsers.inc b/gosa-core/plugins/admin/users/class_divListUsers.inc index ce80e80d3..a4b208b3a 100644 --- a/gosa-core/plugins/admin/users/class_divListUsers.inc +++ b/gosa-core/plugins/admin/users/class_divListUsers.inc @@ -304,11 +304,18 @@ class divListUsers extends MultiSelectWindow /* Add copy & cut icons */ $acl_all = $ui->has_complete_category_acls($this->selectedBase,"users") ; $acl = $ui->get_permissions($val['dn'],"users/user"); - if(preg_match("/(r.*w|w.*r)/",$acl) && $this->parent->CopyPasteHandler){ + if(preg_match("/(r.*d|r.*d)/",$acl) && $this->parent->CopyPasteHandler){ $action .= " "; + }else{ + $action.="  "; + } + + if(preg_match("/r/",$acl) && $this->parent->CopyPasteHandler){ $action.= " "; + }else{ + $action.="  "; } /* Add deactivate status */ @@ -333,6 +340,8 @@ class divListUsers extends MultiSelectWindow /* Add deactivate status if we are allowed to */ if (preg_match("/w/",$acl)){ $action.= $lock_status; + }else{ + $action.=" "; } /* Add Password change icon, if we are able to write users/password */ @@ -347,6 +356,9 @@ class divListUsers extends MultiSelectWindow /* Add snapshot icon */ if(preg_match("/(r.*w|w.*r)/",$acl)){ $action.= $this->GetSnapShotActions($val['dn']); + }else{ + $action.="  "; + $action.="  "; } /* Add remove icon, if we are allowed to remove the current user */ -- 2.30.2