mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FIX: everyone is not a visible group
This commit is contained in:
parent
f083994f5a
commit
9a94d1b212
4 changed files with 8 additions and 1 deletions
|
@ -160,6 +160,7 @@ class Group < ActiveRecord::Base
|
|||
# the everyone group is special, it can include non-users so there is no
|
||||
# way to have the membership in a table
|
||||
if name == :everyone
|
||||
group.visible = false
|
||||
group.save!
|
||||
return group
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue