diff --git a/core/userclass.class.php b/core/userclass.class.php index 67daee49..317ff6d3 100644 --- a/core/userclass.class.php +++ b/core/userclass.class.php @@ -64,6 +64,7 @@ new UserClass("base", null, array( "edit_image_owner" => False, "edit_image_lock" => False, "bulk_edit_image_tag" => False, + "bulk_edit_image_source" => False, "delete_image" => False, "ban_image" => False, @@ -124,6 +125,7 @@ new UserClass("admin", "base", array( "edit_image_source" => True, "edit_image_owner" => True, "bulk_edit_image_tag" => True, + "bulk_edit_image_source" => True, "mass_tag_edit" => True, "create_image_report" => True, "view_image_report" => True, diff --git a/ext/tag_edit/main.php b/ext/tag_edit/main.php index ffb70982..a47d3f6a 100644 --- a/ext/tag_edit/main.php +++ b/ext/tag_edit/main.php @@ -97,7 +97,7 @@ class TagEdit extends Extension { public function onPostListBuilding(PostListBuildingEvent $event) { global $user; - if($user->is_admin() && !empty($event->search_terms)) { + if($user->can("bulk_edit_image_source") && !empty($event->search_terms)) { $this->theme->display_mss(implode(" ", $event->search_terms)); } }