| @@ 26-29 (lines=4) @@ | ||
| 23 | "http://calendar.google.com/calendar/r/eventedit?text=#{@room.name}&location=#{request.base_url + request.fullpath}" |
|
| 24 | end |
|
| 25 | ||
| 26 | def room_authentication_required |
|
| 27 | Setting.find_or_create_by!(provider: user_settings_provider).get_value("Room Authentication") == "true" && |
|
| 28 | current_user.nil? |
|
| 29 | end |
|
| 30 | ||
| 31 | def number_of_rooms_allowed |
|
| 32 | Setting.find_or_create_by!(provider: user_settings_provider).get_value("Room Limit").to_i |
|
| @@ 319-322 (lines=4) @@ | ||
| 316 | redirect_to admins_path if current_user && current_user&.has_role?(:super_admin) |
|
| 317 | end |
|
| 318 | ||
| 319 | def auth_required |
|
| 320 | Setting.find_or_create_by!(provider: user_settings_provider).get_value("Room Authentication") == "true" && |
|
| 321 | current_user.nil? |
|
| 322 | end |
|
| 323 | ||
| 324 | def room_limit_exceeded |
|
| 325 | limit = Setting.find_or_create_by!(provider: user_settings_provider).get_value("Room Limit").to_i |
|