From 7ce5a25eaef23c4dace5c6e80cd83efaa15a6935 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 30 Nov 2005 09:32:37 +0000 Subject: [PATCH] Fixed ACL management for phoneAccount git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2149 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/gofon/phoneaccount/class_phoneAccount.inc | 2 +- plugins/gofon/phoneaccount/generic.tpl | 2 +- plugins/gofon/phoneaccount/main.inc | 7 ++++--- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/plugins/gofon/phoneaccount/class_phoneAccount.inc b/plugins/gofon/phoneaccount/class_phoneAccount.inc index ab1a47101..4610285fb 100644 --- a/plugins/gofon/phoneaccount/class_phoneAccount.inc +++ b/plugins/gofon/phoneaccount/class_phoneAccount.inc @@ -781,7 +781,7 @@ class phoneAccount extends plugin /* Transfer ACL's */ foreach($this->attributes as $val){ - $smarty->assign($val."ACL", chkacl($this->acl, "$val")); + $smarty->assign($val."ACL", chkacl($this->acl,$val)); if(isset($this->$val)){ $smarty->assign($val,$this->$val); }else{ diff --git a/plugins/gofon/phoneaccount/generic.tpl b/plugins/gofon/phoneaccount/generic.tpl index dce10b4d3..cffc65744 100644 --- a/plugins/gofon/phoneaccount/generic.tpl +++ b/plugins/gofon/phoneaccount/generic.tpl @@ -60,7 +60,7 @@
- {html_options options=$macros selected=$macro} diff --git a/plugins/gofon/phoneaccount/main.inc b/plugins/gofon/phoneaccount/main.inc index 19bc2be78..cc27bee55 100644 --- a/plugins/gofon/phoneaccount/main.inc +++ b/plugins/gofon/phoneaccount/main.inc @@ -62,7 +62,7 @@ if (!$remove_lock){ } else { $acl= get_permissions ($ui->dn, $ui->subtreeACL); $editacl= get_module_permission($acl, "phoneAccount", $ui->dn); - $phoneAccount->acl= "#none#"; + $phoneAccount->acl="#none#"; } /* save changes to LDAP and disable edit mode */ @@ -74,12 +74,13 @@ if (!$remove_lock){ /* No errors, save object */ if (count ($message) == 0){ $phoneAccount->save (); + + $phoneAccount->acl="#none#"; gosa_log ("User/phone object'".$ui->dn."' has been saved"); - $phoneAccount->acl= "#none#"; del_lock ($ui->dn); sess_del ('edit'); - /* Write back to session */ + /* Write back to session */ $_SESSION['phoneAccount']= $phoneAccount; } else { /* Errors found, show message */ -- 2.30.2