Code

Updated class user
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 11 Nov 2008 12:07:55 +0000 (12:07 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 11 Nov 2008 12:07:55 +0000 (12:07 +0000)
-Avoid removing non GOsa account.

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

gosa-core/plugins/personal/generic/class_user.inc

index ec47df24bc88f569085145d5e6addfac898eefa1..516eddb8263d33ef7a51f9bbbdefaa07493d0cd5 100644 (file)
@@ -702,6 +702,9 @@ class user extends plugin
   /* remove object from parent */
   function remove_from_parent()
   {
+    /* Only remove valid accounts */
+    if(!$this->initially_was_account) return;
+
     /* Remove password extension */
     $temp= passwordMethod::get_available_methods();