From 38366b0285c4242132fd2ffa9dc368f4d0201de1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20H=C3=A4usler?= Date: Sat, 29 Dec 2012 17:11:57 +0100 Subject: [PATCH] fix admin user angeltypes, preventing from deleting all permissions --- includes/pages/admin_user_angeltypes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/pages/admin_user_angeltypes.php b/includes/pages/admin_user_angeltypes.php index b77a9129..295804a3 100644 --- a/includes/pages/admin_user_angeltypes.php +++ b/includes/pages/admin_user_angeltypes.php @@ -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']); success("Denied all."); }