diff --git a/app/views/hyrax/file_sets/_show_details.html.erb b/app/views/hyrax/file_sets/_show_details.html.erb index 39ba2afc..d5ee520e 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 b0a6335d..d0987c1b 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 %>