Code

Enabled ACL-Role creation with new lists.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 28 Dec 2009 08:25:47 +0000 (08:25 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 28 Dec 2009 08:25:47 +0000 (08:25 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14947 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/admin/acl/acl-list.xml
gosa-core/plugins/admin/acl/class_aclManagement.inc

index ec6ed4a998675ced35c6e15e9aa6f20635d5ffb9..73a057442d1bdf31433618281a6e36477496b363 100644 (file)
      <action>
       <name>new</name>
       <type>entry</type>
-      <image>plugins/users/images/list_new_user.png</image>
-      <label>Acl</label>
-     </action>
-
-     <action>
-      <name>new_role</name>
-      <type>entry</type>
-      <image>plugins/users/images/select_template.png</image>
+      <image>plugins/acl/images/role.png</image>
       <label>Role</label>
      </action>
+
     </action>
 
     <action>
index 35f412745db7a5735231fa528c8e0406fda29eb6..68009793e4016d85a51f15c523f3d7a0ce4b0f2e 100644 (file)
@@ -109,6 +109,15 @@ class aclManagement extends management
   }
 
 
+  function newEntry($action="",$target=array(),$all=array(), $altTabClass ="", $altTabType = "", $altAclCategory="")
+  {
+    $this->skipFooter = TRUE;
+    $altTabClass = "aclroletab";
+    $altTabType = "ACLROLES";
+    $this->config->data['TABS'][$altTabType] =NULL;
+    management::newEntry($action,$target,$all,$altTabClass,$altTabType,$altAclCategory);
+  }
+
   function editEntry($action="",$target=array(),$all=array(), $altTabClass ="", $altTabType = "", $altAclCategory="")
   {
     $this->config->data['TABS'][$this->tabClass] =NULL;