From 8a00a57ddcd96b3475bee69281db0face8df834b Mon Sep 17 00:00:00 2001 From: Adam Ploshay Date: Tue, 12 Nov 2024 15:08:47 -0500 Subject: [PATCH] [ESSI-1918] only show file depositor, activity log to parent work editors --- app/views/hyrax/file_sets/_show_details.html.erb | 2 ++ app/views/hyrax/file_sets/show.html.erb | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/views/hyrax/file_sets/_show_details.html.erb b/app/views/hyrax/file_sets/_show_details.html.erb index 39ba2afc0..d5ee520ed 100644 --- a/app/views/hyrax/file_sets/_show_details.html.erb +++ b/app/views/hyrax/file_sets/_show_details.html.erb @@ -1,7 +1,9 @@

File Details

+ <% if current_ability&.can?(:edit, @presenter.parent.id) %>
Depositor
<%= link_to_profile @presenter.depositor %>
+ <% end %>
Date Uploaded
Date Modified
diff --git a/app/views/hyrax/file_sets/show.html.erb b/app/views/hyrax/file_sets/show.html.erb index b0a6335d6..d0987c1bb 100644 --- a/app/views/hyrax/file_sets/show.html.erb +++ b/app/views/hyrax/file_sets/show.html.erb @@ -13,7 +13,9 @@ <%# TODO: render 'show_descriptions' See https://github.com/samvera/hyrax/issues/1481 %> <%= render 'show_details' %> - <%= render 'hyrax/users/activity_log', events: @presenter.events %> + <% if current_ability&.can?(:edit, @presenter.parent.id) %> + <%= render 'hyrax/users/activity_log', events: @presenter.events %> + <% end %>