Code

Updated roles
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 20 Apr 2010 12:33:10 +0000 (12:33 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 20 Apr 2010 12:33:10 +0000 (12:33 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17737 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/rolemanagement/admin/roleManagement/class_roleGeneric.inc
gosa-plugins/rolemanagement/admin/roleManagement/role-list.xml

index 9d04d137b054bc3533fe1b2b8c5fc0af7763c06d..2947fddd47414adc87b012918db201e22c0ab38b 100644 (file)
@@ -211,10 +211,10 @@ class roleGeneric extends plugin {
     $this->memberList->setAcl($this->getacl("roleOccupant"));
 
     $data = $lData = array();
-    $icon = image('plugins/generic/images/head.png');
     foreach ($this->roleOccupant as $key => $dn){
       $data[$key] = $dn;
       if(isset($this->roleOccCache[$dn])){
+        $icon = image('plugins/users/images/select_user.png');
         $entry = $this->roleOccCache[$dn];
         $name = $entry['cn']['0'];
         if(isset($entry['description'][0])){
@@ -222,6 +222,7 @@ class roleGeneric extends plugin {
         }
       }else{
         $name = _("Unknown")."&nbsp;".$dn;
+        $icon = image('images/false.png');
       }
       $lData[$key] = array('data' => array($icon,$name));
     }
index f2f073ed7a3580c455a470a95c1a8b11c82582c2..8221cd25b6afacbee0a935bca0968731fe597259 100644 (file)
       <name>remove</name>
       <type>entry</type>
       <image>images/lists/trash.png</image>
-      <acl>roles/role[d]</acl>
+      <acl>roles/roleGeneric[d]</acl>
       <label>Remove role</label>
     </action>