Revize c84c32de
Přidáno uživatelem Ondřej Fibich před více než 7 roky(ů)
application/controllers/users.php | ||
---|---|---|
status::warning('User cannot be deleted, he has some dependent items in database.');
|
||
url::redirect($linkback);
|
||
}
|
||
|
||
|
||
$user_model->delete_watchers($user_id);
|
||
|
||
if ($user_model->delete())
|
||
{
|
||
status::success('User has been successfully deleted.');
|
||
... | ... | |
$user_data->type = User_Model::USER;
|
||
$user_data->member_id = $member_id;
|
||
$user_data->application_password = security::generate_password();
|
||
$user_data->settings = '';
|
||
$saved = $user_data->save();
|
||
|
||
// insert users access rights
|
Také k dispozici: Unified diff
Fixes #1069: user with watcher can be deleted