mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 19:39:30 +08:00
Allow admins to choose if groups are visible or not.
This commit is contained in:
@ -109,7 +109,7 @@ class User < ActiveRecord::Base
|
||||
end
|
||||
|
||||
def custom_groups
|
||||
groups.where(automatic: false)
|
||||
groups.where(automatic: false, visible: true)
|
||||
end
|
||||
|
||||
def self.username_available?(username)
|
||||
|
Reference in New Issue
Block a user