From de112be8d8878eb14b04efee8bdbb1cc8cabc716 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 24 May 2005 08:44:20 +0000 Subject: [PATCH] w3c git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@369 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/personal/posix/class_posixAccount.inc | 12 +++++++++++- plugins/personal/posix/generic.tpl | 3 +++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/plugins/personal/posix/class_posixAccount.inc b/plugins/personal/posix/class_posixAccount.inc index f7ce3a5ca..fab107dee 100644 --- a/plugins/personal/posix/class_posixAccount.inc +++ b/plugins/personal/posix/class_posixAccount.inc @@ -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()); diff --git a/plugins/personal/posix/generic.tpl b/plugins/personal/posix/generic.tpl index 0bd44207d..378e3296a 100644 --- a/plugins/personal/posix/generic.tpl +++ b/plugins/personal/posix/generic.tpl @@ -116,6 +116,9 @@