mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 03:10:46 -06:00
DEV: Also fetch user when granting admin (#27382)
In some admin user controller extensions, @user is used to derive certain values. The grant_admin method requires @user as well, so we are adding it here. This is tested in the plugin that it is used in.
This commit is contained in:
parent
9e6dc4c5c8
commit
bc32ffdda8
@ -8,6 +8,7 @@ class Admin::UsersController < Admin::StaffController
|
||||
suspend
|
||||
unsuspend
|
||||
log_out
|
||||
grant_admin
|
||||
revoke_admin
|
||||
revoke_moderation
|
||||
grant_moderation
|
||||
|
Loading…
Reference in New Issue
Block a user