Skip to content

Commit

Permalink
Secure room settings
Browse files Browse the repository at this point in the history
  • Loading branch information
farhatahmad committed Jun 6, 2022
1 parent 67cb9c8 commit d4edbe3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/controllers/rooms_controller.rb
Expand Up @@ -27,7 +27,8 @@ class RoomsController < ApplicationController
unless: -> { !Rails.configuration.enable_email_verification }
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, 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_owner_verified, only: [:show, :join],
unless: -> { !Rails.configuration.enable_email_verification }
Expand Down

0 comments on commit d4edbe3

Please sign in to comment.