Remove deprecation, the admin controller can approve just fine
This commit is contained in:
parent
692e09d813
commit
9bcd7aacc8
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue