From: hickert Date: Fri, 1 Dec 2006 11:37:33 +0000 (+0000) Subject: Moved acl settings to top of execute X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9738f85a5b4cb0fefc296a53b7e80f456b54297a;p=gosa.git Moved acl settings to top of execute git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5288 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/systems/class_servRepository.inc b/plugins/admin/systems/class_servRepository.inc index 295fe5214..4640786b8 100644 --- a/plugins/admin/systems/class_servRepository.inc +++ b/plugins/admin/systems/class_servRepository.inc @@ -81,6 +81,12 @@ class servrepository extends plugin $smarty= get_smarty(); $display= ""; + $ui = get_userinfo(); + $tmp= get_permissions ($this->dn, $ui->subtreeACL); + $this->acl= get_module_permission($tmp, "FAIclass", $this->dn); + $allow_edit = !preg_match("/disabled/i",chkacl($this->acl,"FAIclass")); + + /* Smarty vars*/ $smarty->assign("infoimage", get_template_path('images/info.png')); $smarty->assign("search_image", get_template_path('images/search.png')); @@ -110,12 +116,6 @@ class servrepository extends plugin ADD / EDIT Repository Dialog Handling */ - - $ui = get_userinfo(); - $tmp= get_permissions ($this->dn, $ui->subtreeACL); - $this->acl= get_module_permission($tmp, "FAIclass", $this->dn); - $allow_edit = !preg_match("/disabled/i",chkacl($this->acl,"FAIclass")); - $once = false; if(isset($_POST['servRepository'])){