Code

Fixed acls for logging database service
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 20 Sep 2006 05:19:10 +0000 (05:19 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 20 Sep 2006 05:19:10 +0000 (05:19 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4736 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_goLogDBServer.inc
plugins/admin/systems/goLogDBServer.tpl

index dd10fa363141defb52755b0c93c491e0c1900bd5..75b31b140766bb8b85bc3cd3e71e8967d7a6b59e 100644 (file)
@@ -34,9 +34,14 @@ class goLogDBServer extends goService{
   function execute()
   { 
     $smarty = get_smarty(); 
+
+    $tmp = $this->plInfo();
+    foreach($tmp['plProvidedAcls'] as $name => $translation){
+      $smarty->assign($name."ACL",$this->getacl($name));
+    }
+
     foreach($this->attributes as $attr){
       $smarty->assign($attr,$this->$attr);
-      $smarty->assign($attr."ACL",chkacl($this->acl,$attr));
     }
     return($smarty->fetch(get_template_path("goLogDBServer.tpl",TRUE,dirname(__FILE__))));
   }
index ea6405053d92ad50c73317223a4282454e196d42..dd286dfc49771bf1484151c83bbb7c18c64c3100 100644 (file)
@@ -2,11 +2,19 @@
 <table summary="">
     <tr>
      <td>{t}Logging DB user{/t}{$must}</td>
-     <td><input name="goLogAdmin" id="goLogAdmin" size=30 maxlength=60 {$goLogAdminACL} value="{$goLogAdmin}"></td>
+     <td>
+{render acl=$goLogAdminACL}
+       <input name="goLogAdmin" id="goLogAdmin" size=30 maxlength=60 value="{$goLogAdmin}">
+{/render}
+     </td>
     </tr>
     <tr>
      <td>{t}Password{/t}{$must}</td>
-     <td><input type=password name="goLogPassword" id="goLogPassword" size=30 maxlength=60 {$goLogPasswordACL} value="{$goLogPassword}"></td>
+     <td>
+{render acl=$goLogPasswordACL}
+       <input type=password name="goLogPassword" id="goLogPassword" size=30 maxlength=60 value="{$goLogPassword}">
+{/render}
+     </td>
     </tr>
    </table>