2
0
Fork 0
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:
Sam 2016-10-24 13:03:22 +11:00
parent f083994f5a
commit 9a94d1b212
4 changed files with 8 additions and 1 deletions

View file

@ -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