Code

Fixed date of birth && userPicture
[gosa.git] / plugins / personal / connectivity / class_phpgwAccount.inc
index 130bbe2d6b64987bca746fb8a65d9bdca9c6aae3..0080bbbc9690460483f9787159584a34f0e4409b 100644 (file)
@@ -13,6 +13,7 @@ class phpgwAccount extends plugin
   /* attribute list for save action */
   var $attributes= array("phpgwAccountExpires", "phpgwAccountStatus", "phpgwAccountType");
   var $objectclasses= array("phpgwAccount");
+  var $ReadOnly = false;
 
   function phpgwAccount ($config, $dn= NULL)
   {
@@ -41,7 +42,7 @@ class phpgwAccount extends plugin
       $smarty->assign("phpgwState", "");
     }
 
-    if(($this->is_account && $this->acl_is_removeable()) || (!$this->is_account && $this->acl_is_createable())) {
+    if((!$this->ReadOnly)&&(($this->is_account && $this->acl_is_removeable()) || (!$this->is_account && $this->acl_is_createable()))) {
       $smarty->assign('phpgwAccountACL', "");
     }else{
       $smarty->assign('phpgwAccountACL', " disabled ");