Code

Fixed spacing action icons.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 26 May 2008 10:51:26 +0000 (10:51 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 26 May 2008 10:51:26 +0000 (10:51 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11000 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/admin/users/class_divListUsers.inc

index ce80e80d3aa5b75e30e93bf96dced1ec23d64645..a4b208b3a7ae7f778bc50ce250e735aede460264 100644 (file)
@@ -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 .= "<input class='center' type='image'
           src='images/lists/cut.png' alt='"._("cut")."' name='cut_%KEY%' title='"._("Cut this entry")."'>&nbsp;";
+      }else{
+        $action.="<img src='images/empty.png' alt=' ' class='center'>&nbsp;";
+      }
+
+      if(preg_match("/r/",$acl) && $this->parent->CopyPasteHandler){
         $action.= "<input class='center' type='image'
           src='images/lists/copy.png' alt='"._("copy")."' name='copy_%KEY%' title='"._("Copy this entry")."'>&nbsp;";
+      }else{
+        $action.="<img src='images/empty.png' alt=' ' class='center'>&nbsp;";
       }
 
       /* 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.="<img src='images/empty.png' alt=' ' class='center'>";
       }
 
       /* 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.="<img src='images/empty.png' alt=' ' class='center'>&nbsp;";
+        $action.="<img src='images/empty.png' alt=' ' class='center'>&nbsp;";
       }
 
       /* Add remove icon, if we are allowed to remove the current user */