From a1436a74aef65cf9c7cff99ba0204ebecb50654e Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 28 Apr 2010 08:34:14 +0000 Subject: [PATCH] Fixed problem with copy and paste. -This account wasn't copyable git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17897 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../connectivity/pptp/class_pptpAccount.inc | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/gosa-plugins/pptp/personal/connectivity/pptp/class_pptpAccount.inc b/gosa-plugins/pptp/personal/connectivity/pptp/class_pptpAccount.inc index ebbf600a6..3bc07fea6 100644 --- a/gosa-plugins/pptp/personal/connectivity/pptp/class_pptpAccount.inc +++ b/gosa-plugins/pptp/personal/connectivity/pptp/class_pptpAccount.inc @@ -138,7 +138,6 @@ class pptpAccount extends plugin /* Save to LDAP */ function save() { - if($this->acl_is_createable()){ plugin::save(); /* Write back to ldap */ @@ -149,24 +148,23 @@ class pptpAccount 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, 0, get_class())); + msg_dialog::display(_("LDAP error"), msgPool::ldaperror($ldap->get_error(), $this->dn, 0, 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)); } - } } -- 2.30.2