forked from External/greenlight
Change permissions from columns to table entries (#762)
This commit is contained in:
committed by
farhatahmad
parent
01b8dbbd0e
commit
666231db6c
@ -58,7 +58,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.can_edit_site_settings &&
|
||||
!current_user.highest_priority_role.get_permission("can_edit_site_settings") &&
|
||||
!current_user.has_role?(:super_admin))
|
||||
redirect_to root_path
|
||||
end
|
||||
|
Reference in New Issue
Block a user