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
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