forked from External/greenlight
GRN2-253: Added the ability to share rooms across multiple users (#912)
* Added ability to share rooms with other users * Fixed testcases
This commit is contained in:
committed by
farhatahmad
parent
8cbfc3f730
commit
967130e57c
@ -172,6 +172,12 @@ class ApplicationController < ActionController::Base
|
||||
end
|
||||
helper_method :configured_providers
|
||||
|
||||
# Indicates whether users are allowed to share rooms
|
||||
def shared_access_allowed
|
||||
@settings.get_value("Shared Access") == "true"
|
||||
end
|
||||
helper_method :shared_access_allowed
|
||||
|
||||
# Parses the url for the user domain
|
||||
def parse_user_domain(hostname)
|
||||
return hostname.split('.').first if Rails.configuration.url_host.empty?
|
||||
|
Reference in New Issue
Block a user