fix admin user angeltypes, preventing from deleting all permissions

This commit is contained in:
Philip Häusler 2012-12-29 17:11:57 +01:00
parent 1f764e20a3
commit 38366b0285
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ function admin_user_angeltypes() {
)) ))
)); ));
} }
sql_query("DELETE FROM `UserAngelTypes` WHERE `angeltype_id`=" . sql_escape($_REQUEST['deny_all'])); sql_query("DELETE FROM `UserAngelTypes` WHERE `confirm_user_id` IS NULL AND `angeltype_id`=" . sql_escape($_REQUEST['deny_all']));
engelsystem_log("Denied all " . $angel_type_source[0]['name']); engelsystem_log("Denied all " . $angel_type_source[0]['name']);
success("Denied all."); success("Denied all.");
} }