Skip to content
Snippets Groups Projects
Unverified Commit cbc40711 authored by Ahmad Farhat's avatar Ahmad Farhat Committed by GitHub
Browse files

Secure room settings (#3508)

parent 67cb9c8d
No related branches found
No related tags found
No related merge requests found
...@@ -27,7 +27,8 @@ class RoomsController < ApplicationController ...@@ -27,7 +27,8 @@ class RoomsController < ApplicationController
unless: -> { !Rails.configuration.enable_email_verification } unless: -> { !Rails.configuration.enable_email_verification }
before_action :find_room, except: [:create, :join_specific_room, :cant_create_rooms] before_action :find_room, except: [:create, :join_specific_room, :cant_create_rooms]
before_action :verify_room_ownership_or_admin_or_shared, only: [:start, :shared_access] before_action :verify_room_ownership_or_admin_or_shared, only: [:start, :shared_access]
before_action :verify_room_ownership_or_admin, only: [:update_settings, :destroy, :preupload_presentation, :remove_presentation] before_action :verify_room_ownership_or_admin,
only: [:room_settings, :update_settings, :destroy, :preupload_presentation, :remove_presentation]
before_action :verify_room_ownership_or_shared, only: [:remove_shared_access] before_action :verify_room_ownership_or_shared, only: [:remove_shared_access]
before_action :verify_room_owner_verified, only: [:show, :join], before_action :verify_room_owner_verified, only: [:show, :join],
unless: -> { !Rails.configuration.enable_email_verification } unless: -> { !Rails.configuration.enable_email_verification }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment