diff --git a/app/controllers/recordings_controller.rb b/app/controllers/recordings_controller.rb index d5d3c80f..fc82470e 100644 --- a/app/controllers/recordings_controller.rb +++ b/app/controllers/recordings_controller.rb @@ -57,9 +57,7 @@ class RecordingsController < ApplicationController # Ensure the user is logged into the room they are accessing. def verify_room_ownership - if !current_user || (!@room.owned_by?(current_user) && - !current_user.highest_priority_role.get_permission("can_edit_site_settings") && - !current_user.has_role?(:super_admin)) + if !@room.owned_by?(current_user) && !current_user&.highest_priority_role&.get_permission("can_manage_rooms_recordings") redirect_to root_path end end