mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 18:01:25 +08:00
add render nothing to refresh_browsers method
This commit is contained in:
@ -48,6 +48,7 @@ class Admin::UsersController < Admin::AdminController
|
|||||||
def refresh_browsers
|
def refresh_browsers
|
||||||
@user = User.where(id: params[:user_id]).first
|
@user = User.where(id: params[:user_id]).first
|
||||||
MessageBus.publish "/file-change", ["refresh"], user_ids: [@user.id]
|
MessageBus.publish "/file-change", ["refresh"], user_ids: [@user.id]
|
||||||
|
render nothing: true
|
||||||
end
|
end
|
||||||
|
|
||||||
def revoke_admin
|
def revoke_admin
|
||||||
|
Reference in New Issue
Block a user