Code

Fixed problem with copy and paste.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 28 Apr 2010 08:34:21 +0000 (08:34 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 28 Apr 2010 08:34:21 +0000 (08:34 +0000)
-This account wasn't copyable

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17898 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/webdav/personal/connectivity/webdav/class_webdavAccount.inc

index 3af4185d9520d776b6f6d756ddb4a7f7ec0b03be..9cf3a2765d99f5c4f3d3a4b654844561e9e85c78 100644 (file)
@@ -127,7 +127,6 @@ class webdavAccount extends plugin
   /* Save to LDAP */
   function save()
   {
-    if($this->acl_is_createable()){
       plugin::save();
 
       /* Write back to ldap */
@@ -138,26 +137,26 @@ class webdavAccount extends plugin
 
       /* Log last action */
       if($this->initially_was_account){
-        new log("modify","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+          new log("modify","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
       }else{
-        new log("create","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+          new log("create","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
       }
 
       if (!$ldap->success()){
-        msg_dialog::display(_("LDAP error"), msgPool::ldaperror($ldap->get_error(), $this->dn, LDAP_MOD, get_class()));
+          msg_dialog::display(_("LDAP error"), msgPool::ldaperror($ldap->get_error(), $this->dn, LDAP_MOD, get_class()));
       }
 
       /* Optionally execute a command after we're done */
       if ($this->initially_was_account == $this->is_account){
-        if ($this->is_modified){
-          $this->handle_post_events("modify",array("uid" => $this->uid));
-        }
+          if ($this->is_modified){
+              $this->handle_post_events("modify",array("uid" => $this->uid));
+          }
       } else {
-        $this->handle_post_events("add",array("uid" => $this->uid));
+          $this->handle_post_events("add",array("uid" => $this->uid));
       }
-    }
   }
 
+
   /* Return plugin informations for acl handling
       #FIXME This is only an enable/disable checkbox for this account, there is possibly a better solution available later */
   static function plInfo()