Code

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

plugins/personal/posix/class_posixAccount.inc

index cd18775a664aa23a6bb3b789fba100710f998baf..f7ce3a5cac2e9c059672549a75ad95e2ade97442 100644 (file)
@@ -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);