diff --git a/core/userclass.php b/core/userclass.php index fdb0ce28..bcd05c36 100644 --- a/core/userclass.php +++ b/core/userclass.php @@ -133,6 +133,7 @@ new UserClass("base", null, [ "bulk_edit_image_rating" => false, "view_trash" => false, + "perform_bulk_actions" => false, ]); new UserClass("anonymous", "base", [ @@ -194,7 +195,7 @@ new UserClass("admin", "base", [ "edit_image_rating" => true, "bulk_edit_image_rating" => true, "view_trash" => true, - + "perform_bulk_actions" => true, ]); new UserClass("hellbanned", "user", [ diff --git a/ext/bulk_actions/main.php b/ext/bulk_actions/main.php index 93d80480..d8dde6d9 100644 --- a/ext/bulk_actions/main.php +++ b/ext/bulk_actions/main.php @@ -147,7 +147,7 @@ class BulkActions extends Extension public function onPageRequest(PageRequestEvent $event) { global $page, $user; - if ($event->page_matches("bulk_action") && $user->is_admin()) { + if ($event->page_matches("bulk_action") && $user->can("perform_bulk_actions")) { if (!isset($_POST['bulk_action'])) { return; }