Added fix for multitenant error (#394)

* Added fix for multitenant error

* Fixed issue with room lock when using ldap

* Fixed test cases

* Fixed rubocop issue

* Included internal documentation for LDAP ENV variables
This commit is contained in:
farhatahmad
2019-03-13 15:56:57 -04:00
committed by Jesus Federico
parent 08f6f32779
commit c0b46be547
5 changed files with 14 additions and 2 deletions

View File

@ -24,7 +24,8 @@ class RoomsController < ApplicationController
unless: -> { !Rails.configuration.enable_email_verification }
before_action :find_room, except: :create
before_action :verify_room_ownership, except: [:create, :show, :join, :logout]
before_action :verify_room_owner_verified, only: [:show, :join]
before_action :verify_room_owner_verified, only: [:show, :join],
unless: -> { !Rails.configuration.enable_email_verification }
# POST /
def create