More work to fix CSRF issue on join (#2043)

This commit is contained in:
Ahmad Farhat 2020-08-26 10:20:50 -04:00 committed by GitHub
parent 503ca52806
commit e2bfdef967
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -33,6 +33,7 @@ class RoomsController < ApplicationController
unless: -> { !Rails.configuration.enable_email_verification }
before_action :verify_room_owner_valid, only: [:show, :join]
before_action :verify_user_not_admin, only: [:show]
skip_before_action :verify_authenticity_token, only: [:join]
# POST /
def create