From: hickert Date: Wed, 6 Dec 2006 06:58:22 +0000 (+0000) Subject: Set acls correctly. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=346cb1d6ca96a60c700d342701075921bfbe4162;p=gosa.git Set acls correctly. Do not reload after selection on another base. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5310 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/personal/generic/class_user.inc b/plugins/personal/generic/class_user.inc index d2d8e9c25..9c7caddc2 100644 --- a/plugins/personal/generic/class_user.inc +++ b/plugins/personal/generic/class_user.inc @@ -512,6 +512,11 @@ class user extends plugin $ui =get_userinfo(); foreach($this->attributes as $val){ $smarty->assign("$val", $this->$val); + } + + /* Set acls */ + $tmp = $this->plinfo(); + foreach($tmp['plProvidedAcls'] as $val => $translation){ $smarty->assign("$val"."ACL", $this->getacl($val,(!is_object($this->parent) && !isset($_SESSION['edit'])))); } @@ -524,7 +529,6 @@ class user extends plugin $smarty->assign("userPicture_is_readable", $this->acl_is_readable("userPicture",(!is_object($this->parent) && !isset($_SESSION['edit'])))); /* Create base acls */ - $smarty->assign("baseACL",$this->getacl("base",(!is_object($this->parent) && !isset($_SESSION['edit'])))); @$smarty->assign("bases", $this->allowedBasesToMoveTo()); /* Save government mode attributes */ diff --git a/plugins/personal/generic/generic.tpl b/plugins/personal/generic/generic.tpl index 8c3e256e6..5d136051b 100644 --- a/plugins/personal/generic/generic.tpl +++ b/plugins/personal/generic/generic.tpl @@ -145,7 +145,7 @@
{render acl=$baseACL} - {html_options options=$bases selected=$base_select} {/render}