From 69f3d4f6f5d04a7fcee52b5ee7dd777a20204cac Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 24 May 2005 08:24:55 +0000 Subject: [PATCH] w3c posix/class_posixAccount.inc git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@368 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/personal/posix/class_posixAccount.inc | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/plugins/personal/posix/class_posixAccount.inc b/plugins/personal/posix/class_posixAccount.inc index cd18775a6..f7ce3a5ca 100644 --- a/plugins/personal/posix/class_posixAccount.inc +++ b/plugins/personal/posix/class_posixAccount.inc @@ -510,12 +510,24 @@ class posixAccount extends plugin $smarty->assign("trustmodeACL", chkacl($this->acl, "trustmode")); if ($this->trustModel == "fullaccess"){ $trustmode= 1; - $smarty->assign("trusthide", "disabled"); + // pervent double disable tag in html code, this will disturb our clean w3c html + + if(chkacl($this->acl, "trustmode")!="disabled"){ + $smarty->assign("trusthide", "disabled"); + }else{ + $smarty->assign("trusthide", ""); + } + } elseif ($this->trustModel == "byhost"){ $trustmode= 2; $smarty->assign("trusthide", ""); } else { - $smarty->assign("trusthide", "disabled"); + // pervent double disable tag in html code, this will disturb our clean w3c html + if(chkacl($this->acl, "trustmode")==""){ + $smarty->assign("trusthide", "disabled"); + }else{ + $smarty->assign("trusthide", ""); + } $trustmode= 0; } $smarty->assign("trustmode", $trustmode); -- 2.30.2