forked from External/greenlight
GRN2-118: Create a setting to require authentication to join a room (#541)
* Create a setting to require authentication to join a room * Apply comments
This commit is contained in:
committed by
Jesus Federico
parent
996518eea7
commit
70acb9a7e1
@ -35,6 +35,10 @@ module AdminsHelper
|
||||
registration_method == Rails.configuration.registration_methods[:approval]
|
||||
end
|
||||
|
||||
def room_authentication_required
|
||||
Setting.find_or_create_by!(provider: user_settings_provider).get_value("Room Authentication") == "true"
|
||||
end
|
||||
|
||||
def registration_method_string
|
||||
case registration_method
|
||||
when Rails.configuration.registration_methods[:open]
|
||||
|
Reference in New Issue
Block a user