summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 69f3d4f)
raw | patch | inline | side by side (parent: 69f3d4f)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 24 May 2005 08:44:20 +0000 (08:44 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 24 May 2005 08:44:20 +0000 (08:44 +0000) |
plugins/personal/posix/class_posixAccount.inc | patch | blob | history | |
plugins/personal/posix/generic.tpl | patch | blob | history |
diff --git a/plugins/personal/posix/class_posixAccount.inc b/plugins/personal/posix/class_posixAccount.inc
index f7ce3a5cac2e9c059672549a75ad95e2ade97442..fab107dee69495cf8d048121aae39cd75793e0b1 100644 (file)
$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", "");
$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"