Code

Fixed connectivity plugins.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 14 May 2007 13:34:05 +0000 (13:34 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 14 May 2007 13:34:05 +0000 (13:34 +0000)
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
plugins/personal/connectivity/class_proxyAccount.inc

index 845ab01bba14c2c3ccfad045d045959760c4808a..d8fc86d85a3a6546a5c23d5aca8da20bd6297f7b 100644 (file)
@@ -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();
 
index 497166060ba5552bc8815ab2af2c3b52425299f6..67d6a8b026b40b8c6a47225c0fb675af20bf0ba9 100644 (file)
@@ -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();