diff --git a/app/controllers/admin/users_controller.rb b/app/controllers/admin/users_controller.rb index c63a39ca67d..b526e89f156 100644 --- a/app/controllers/admin/users_controller.rb +++ b/app/controllers/admin/users_controller.rb @@ -288,13 +288,11 @@ class Admin::UsersController < Admin::AdminController end def approve - Discourse.deprecate("AdminUsersController#approve is deprecated. Please use the Reviewable API instead.", since: "2.3.0beta5", drop_from: "2.4") Reviewable.bulk_perform_targets(current_user, :approve, 'ReviewableUser', [@user.id]) render body: nil end def approve_bulk - Discourse.deprecate("AdminUsersController#approve_bulk is deprecated. Please use the Reviewable API instead.", since: "2.3.0beta5", drop_from: "2.4") Reviewable.bulk_perform_targets(current_user, :approve, 'ReviewableUser', params[:users]) render body: nil end