mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 15:28:37 +08:00
FIX: ensure the group 'everyone' is never shown when using a different locale
This commit is contained in:
@ -1,10 +1,9 @@
|
||||
class Admin::GroupsController < Admin::AdminController
|
||||
|
||||
def index
|
||||
groups = Group.order(:name).where("name <> 'everyone'")
|
||||
groups = Group.order(:name).where("id <> ?", Group::AUTO_GROUPS[:everyone])
|
||||
|
||||
if search = params[:search]
|
||||
search = search.to_s
|
||||
if search = params[:search].to_s
|
||||
groups = groups.where("name ILIKE ?", "%#{search}%")
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user