From 940e473ff078e980f96fa92f4573a4cb12e79fce Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 7 Apr 2010 13:56:54 +0000 Subject: [PATCH] Updated role editing git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17524 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/plugins/admin/acl/acl_role.tpl | 8 ++++---- gosa-core/plugins/admin/acl/class_aclRole.inc | 9 ++------- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/gosa-core/plugins/admin/acl/acl_role.tpl b/gosa-core/plugins/admin/acl/acl_role.tpl index 2bb63fc82..8dced0fc8 100644 --- a/gosa-core/plugins/admin/acl/acl_role.tpl +++ b/gosa-core/plugins/admin/acl/acl_role.tpl @@ -34,7 +34,7 @@ {$aclList} -{render acl=$gosaAclEntryACL} +{render acl=$gosaAclTemplateACL} {/render} @@ -53,7 +53,7 @@
-{render acl=$gosaAclEntryACL} +{render acl=$gosaAclTemplateACL}   @@ -67,13 +67,13 @@

{$headline}

-{render acl=$gosaAclEntryACL} +{render acl=$gosaAclTemplateACL} {$aclSelector} {/render}
-{render acl=$gosaAclEntryACL} +{render acl=$gosaAclTemplateACL} {/render} diff --git a/gosa-core/plugins/admin/acl/class_aclRole.inc b/gosa-core/plugins/admin/acl/class_aclRole.inc index 98a6d8c88..76de3e0cf 100644 --- a/gosa-core/plugins/admin/acl/class_aclRole.inc +++ b/gosa-core/plugins/admin/acl/class_aclRole.inc @@ -227,9 +227,9 @@ class aclrole extends acl // Get listing actions. Delete or Edit. $this->list->save_object(); $lAction = $this->list->getAction(); - $this->gosaAclEntry = $this->list->getMaintainedData(); + $this->gosaAclTemplate = array_values($this->list->getMaintainedData()); if($lAction['action'] == "edit"){ - $this->currentIndex = $this->list->getKey($lAction['targets'][0]); + $this->currentIndex = $lAction['targets'][0]; $this->dialogState= 'create'; $firstedit= TRUE; $this->dialog= TRUE; @@ -251,11 +251,6 @@ class aclrole extends acl continue; } - if (preg_match('/^acl_del_[0-9]*/', $name) && $this->acl_is_writeable("gosaAclTemplate")){ - unset($this->gosaAclTemplate[preg_replace('/^acl_del_([0-9]*)$/', '\1', $name)]); - continue; - } - if (preg_match('/^cat_del_.*/', $name) && $this->acl_is_writeable("gosaAclTemplate")){ $idx= preg_replace('/^cat_del_(.*)$/', '\1', $name); foreach ($this->ocMapping[$idx] as $key){ -- 2.30.2