Replaced checkbox with dropdown (#552)

This commit is contained in:
farhatahmad
2019-05-23 13:21:43 -04:00
committed by GitHub
parent de1e75fbf8
commit 3e0238eb0c
11 changed files with 72 additions and 61 deletions

View File

@ -22,4 +22,9 @@ module RoomsHelper
def google_calendar_path
"http://calendar.google.com/calendar/r/eventedit?text=#{@room.name}&location=#{request.base_url + request.fullpath}"
end
def room_authentication_required
Setting.find_or_create_by!(provider: user_settings_provider).get_value("Room Authentication") == "true" &&
current_user.nil?
end
end