From bac5f254921b6f869dc2c55e2e0d9cb1582e5fa1 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 14 May 2007 13:34:05 +0000 Subject: [PATCH] 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 --- plugins/personal/connectivity/class_intranetAccount.inc | 2 +- plugins/personal/connectivity/class_proxyAccount.inc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(); -- 2.30.2