mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 12:42:57 +08:00
845170bd6b
There are 4 visibility levels - public (default) - members only - staff - owners Note, admins and group owners ALWAYS have visibility to groups Migration treated old "non public" as "members only"
7 lines
194 B
Ruby
7 lines
194 B
Ruby
Group.ensure_automatic_groups!
|
|
if g = Group.find_by(name: 'trust_level_5', id: 15)
|
|
g.destroy!
|
|
end
|
|
|
|
Group.where(name: 'everyone').update_all(visibility_level: Group.visibility_levels[:owners])
|