From 05ac1c1557c39d466db996c6207b4c3671821bae Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 11 Nov 2008 12:07:55 +0000 Subject: [PATCH] Updated class user -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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gosa-core/plugins/personal/generic/class_user.inc b/gosa-core/plugins/personal/generic/class_user.inc index ec47df24b..516eddb82 100644 --- a/gosa-core/plugins/personal/generic/class_user.inc +++ b/gosa-core/plugins/personal/generic/class_user.inc @@ -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(); -- 2.30.2