Allow admins to choose if groups are visible or not.

This commit is contained in:
Robin Ward
2014-04-22 16:43:46 -04:00
parent 8538e31fb4
commit af877781b7
11 changed files with 43 additions and 19 deletions

View File

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