Code

Updated ACL template rendering, hide everything instead of gray-out
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 23 Oct 2008 11:43:19 +0000 (11:43 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 23 Oct 2008 11:43:19 +0000 (11:43 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12770 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_acl.inc

index fb58fffcc0618729aa84a301343bdcd56a155357..4d4a36f80593c7b3cb33c1cbb292eebf382fdaa8 100644 (file)
@@ -437,6 +437,10 @@ class acl extends plugin
 
     /* Create templating instance */
     $smarty= get_smarty();
+    $smarty->assign("acl_readable",$this->acl_is_readable(""));
+    if(!$this->acl_is_readable("")){
+      return ($smarty->fetch (get_template_path('acl.tpl')));
+    }
 
     if ($this->dialogState == 'head'){
       /* Draw list */