From c7bc3d794611688e0a6dcfa9eec47ace79f5f071 Mon Sep 17 00:00:00 2001 From: Mariam05 Date: Thu, 4 Jan 2024 14:21:25 -0500 Subject: [PATCH] LTI-257: dont allow shared room admins to edit recordings --- app/views/shared/components/_recording_row.html.erb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/views/shared/components/_recording_row.html.erb b/app/views/shared/components/_recording_row.html.erb index c4f9b906..df6695ec 100644 --- a/app/views/shared/components/_recording_row.html.erb +++ b/app/views/shared/components/_recording_row.html.erb @@ -15,7 +15,7 @@
- <% can_edit = @user.admin? || @user.moderator?(bigbluebutton_moderator_roles) %> + <% can_edit = !@room.use_shared_code && (@user.admin? || @user.moderator?(bigbluebutton_moderator_roles)) %> <% if can_edit %> <% hover = 'bg-gray-100' %> <% focus = 'bg-white' %> @@ -30,9 +30,11 @@ <%= recording[:name] %> <% end %> + <% if can_edit %> + <% end %>
@@ -41,7 +43,7 @@ data-launch-nonce="<%= @launch_nonce %>" data-can-edit="<%= can_edit %>"> <%= recording[:metadata][:description] %> - <% if @user.admin? || @user.moderator?(bigbluebutton_moderator_roles) %> + <% if can_edit %>