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 %>