Code

Fixed date of birth && userPicture
[gosa.git] / plugins / personal / connectivity / class_webdavAccount.inc
index 7a96a0ea161ca9baa4f2bf851ca9952e4f67600b..58acf40cb86588e377560856a93650a9526c5eeb 100644 (file)
@@ -9,6 +9,7 @@ class webdavAccount extends plugin
   /* attribute list for save action */
   var $attributes= array();
   var $objectclasses= array("gosaWebdavAccount");
+  var $ReadOnly = false;
 
   function webdavAccount ($config, $dn= NULL)
   {
@@ -37,7 +38,7 @@ class webdavAccount extends plugin
       $smarty->assign("tabbed", 1);
     }
 
-    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('webdavAccountACL', "");
     }else{
       $smarty->assign('webdavAccountACL', " disabled ");
@@ -138,8 +139,7 @@ class webdavAccount extends plugin
           "plCategory"      => array("users"),
           "plOptions"       => array(),
 
-          "plProvidedAcls"  => array(
-            "gosaWebdavAccount" => "!!! FIXME "._("WebDAV account"))
+          "plProvidedAcls"  => array()
           ));
   }
 }