Remove deprecation, the admin controller can approve just fine

This commit is contained in:
Robin Ward 2019-04-09 11:19:19 -04:00
parent 692e09d813
commit 9bcd7aacc8
1 changed files with 0 additions and 2 deletions

View File

@ -288,13 +288,11 @@ class Admin::UsersController < Admin::AdminController
end end
def approve 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]) Reviewable.bulk_perform_targets(current_user, :approve, 'ReviewableUser', [@user.id])
render body: nil render body: nil
end end
def approve_bulk 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]) Reviewable.bulk_perform_targets(current_user, :approve, 'ReviewableUser', params[:users])
render body: nil render body: nil
end end