From: hickert Date: Mon, 14 May 2007 13:34:05 +0000 (+0000) Subject: Fixed connectivity plugins. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=bac5f254921b6f869dc2c55e2e0d9cb1582e5fa1;p=gosa.git Fixed connectivity plugins. They remove_from_parent was called everytime you saved a user account. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6372 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/personal/connectivity/class_intranetAccount.inc b/plugins/personal/connectivity/class_intranetAccount.inc index 845ab01bb..d8fc86d85 100644 --- a/plugins/personal/connectivity/class_intranetAccount.inc +++ b/plugins/personal/connectivity/class_intranetAccount.inc @@ -102,7 +102,7 @@ class intranetAccount extends plugin */ function remove_from_parent() { - if($this->acl_is_removeable()){ + if($this->acl_is_removeable() && $this->initially_was_account){ plugin::remove_from_parent(); $ldap= $this->config->get_ldap_link(); diff --git a/plugins/personal/connectivity/class_proxyAccount.inc b/plugins/personal/connectivity/class_proxyAccount.inc index 497166060..67d6a8b02 100644 --- a/plugins/personal/connectivity/class_proxyAccount.inc +++ b/plugins/personal/connectivity/class_proxyAccount.inc @@ -148,7 +148,7 @@ class proxyAccount extends plugin function remove_from_parent() { - if($this->acl_is_removeable()){ + if($this->acl_is_removeable() && $this->initially_was_account){ plugin::remove_from_parent();