Code

Moved acl settings to top of execute
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 1 Dec 2006 11:37:33 +0000 (11:37 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 1 Dec 2006 11:37:33 +0000 (11:37 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5288 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_servRepository.inc

index 295fe521418ad438e5403396c23bcb42e02c9767..4640786b87b45373d64b34af12e8c6f4d2d118b9 100644 (file)
@@ -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'])){