summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorPhilip Häusler <msquare@notrademark.de>2012-12-29 17:11:57 +0100
committerPhilip Häusler <msquare@notrademark.de>2012-12-29 17:11:57 +0100
commit38366b0285c4242132fd2ffa9dc368f4d0201de1 (patch)
tree9ecd570da71fa25e94923aa1da81ae3ff592b887 /includes
parent1f764e20a368caa39b963611a84b7614f4ca1c94 (diff)
fix admin user angeltypes, preventing from deleting all permissions
Diffstat (limited to 'includes')
-rw-r--r--includes/pages/admin_user_angeltypes.php2
1 files changed, 1 insertions, 1 deletions
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.");
}