From fbebf813c0558acb8eb6466625ede7935093daec Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 29 Oct 2008 06:29:30 +0000 Subject: [PATCH] Fixed ACL editing - closes 576 -User filter was not saved in all cases git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12793 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_acl.inc | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/gosa-core/include/class_acl.inc b/gosa-core/include/class_acl.inc index 4d4a36f80..0ddb62128 100644 --- a/gosa-core/include/class_acl.inc +++ b/gosa-core/include/class_acl.inc @@ -370,6 +370,15 @@ class acl extends plugin } } + /* Save common values */ + if($this->acl_is_writeable("")){ + foreach (array("aclType","aclFilter", "aclObject", "target") as $key){ + if (isset($_POST[$key])){ + $this->$key= validate($_POST[$key]); + } + } + } + /* Store ACL in main object? */ if (isset($_POST['submit_new_acl'])){ $this->gosaAclEntry[$this->currentIndex]['type']= $this->aclType; @@ -426,15 +435,6 @@ class acl extends plugin } } - /* Save common values */ - if($this->acl_is_writeable("")){ - foreach (array("aclType","aclFilter", "aclObject", "target") as $key){ - if (isset($_POST[$key])){ - $this->$key= validate($_POST[$key]); - } - } - } - /* Create templating instance */ $smarty= get_smarty(); $smarty->assign("acl_readable",$this->acl_is_readable("")); -- 2.30.2