one meeting per room

This commit is contained in:
Josh
2018-05-14 14:28:18 -04:00
parent 0f8a4734b2
commit 1ddc3172eb
13 changed files with 126 additions and 149 deletions

View File

@ -39,9 +39,6 @@ class ApplicationController < ActionController::Base
# Ensure the user is logged into the room they are accessing.
def verify_room_ownership
return unless params.include?(:room_uid)
@room = Room.find_by(uid: params[:room_uid])
# Redirect to correct room or root if not logged in.
if current_user.nil?
redirect_to root_path