Code

w3c
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 24 May 2005 08:44:20 +0000 (08:44 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 24 May 2005 08:44:20 +0000 (08:44 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@369 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/personal/posix/class_posixAccount.inc
plugins/personal/posix/generic.tpl

index f7ce3a5cac2e9c059672549a75ad95e2ade97442..fab107dee69495cf8d048121aae39cd75793e0b1 100644 (file)
@@ -512,7 +512,7 @@ class posixAccount extends plugin
       $trustmode= 1;
       // pervent double disable tag in html code, this will disturb our clean w3c html
     
-    if(chkacl($this->acl, "trustmode")!="disabled"){
+    if(chkacl($this->acl, "trustmode")==""){
           $smarty->assign("trusthide", "disabled");
       }else{
           $smarty->assign("trusthide", "");
@@ -533,6 +533,16 @@ class posixAccount extends plugin
     $smarty->assign("trustmode", $trustmode);
     $smarty->assign("trustmodes", array( 0 => _("disabled"), 1 => _("full access"),
           2 => _("allow access to these hosts")));
+
+
+
+    if((count($this->accessTo))==0)
+      $smarty->assign("emptyArrAccess",true);
+    else
+      $smarty->assign("emptyArrAccess",false);
+    
+
+
     $smarty->assign("workstations", $this->accessTo);
 
     $smarty->assign("apply", apply_filter());
index 0bd44207dd881582292f91431e087b477e0e3c83..378e3296aef1bb34dce9676f14fdd0db1dab156b 100644 (file)
    </h2>
    <select style="width:350px;" id="wslist" name="workstation_list[]" size=4 multiple {$trustmodeACL} {$trusthide}>
     {html_options values=$workstations output=$workstations}
+       {if $emptyArrAccess}
+               <option>
+       {/if}
    </select>
    <br>
    <input type="submit" id="add_ws" value="{t}Add{/t}" name="add_ws"