From: hickert Date: Tue, 11 Nov 2008 12:07:55 +0000 (+0000) Subject: Updated class user X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=05ac1c1557c39d466db996c6207b4c3671821bae;p=gosa.git Updated class user -Avoid removing non GOsa account. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13004 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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();