mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 16:34:31 +08:00
FIX: Incorrect query when removing a group owner.
https://meta.discourse.org/t/group-rename-and-group-owners-removal-problems/85596
This commit is contained in:
@ -105,7 +105,7 @@ class Admin::GroupsController < Admin::AdminController
|
||||
end
|
||||
|
||||
def remove_owner
|
||||
group = Group.find_by(params.require(:id))
|
||||
group = Group.find_by(id: params.require(:id))
|
||||
raise Discourse::NotFound unless group
|
||||
|
||||
return can_not_modify_automatic if group.automatic
|
||||
|
Reference in New Issue
Block a user