forked from External/greenlight
More work to fix CSRF issue on join (#2043)
This commit is contained in:
parent
503ca52806
commit
e2bfdef967
|
@ -33,6 +33,7 @@ class RoomsController < ApplicationController
|
||||||
unless: -> { !Rails.configuration.enable_email_verification }
|
unless: -> { !Rails.configuration.enable_email_verification }
|
||||||
before_action :verify_room_owner_valid, only: [:show, :join]
|
before_action :verify_room_owner_valid, only: [:show, :join]
|
||||||
before_action :verify_user_not_admin, only: [:show]
|
before_action :verify_user_not_admin, only: [:show]
|
||||||
|
skip_before_action :verify_authenticity_token, only: [:join]
|
||||||
|
|
||||||
# POST /
|
# POST /
|
||||||
def create
|
def create
|
||||||
|
|
Loading…
Reference in New Issue