Skip to content

Commit

Permalink
Update nestable method in test
Browse files Browse the repository at this point in the history
`collection_type_is_nestable?` replaces `any_nestable?`
  • Loading branch information
LaRita Robinson committed Jan 12, 2024
1 parent 5353ee4 commit f5fdfff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/hyrax/my/_collection_action_menu.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
</li>
<% end %>
<li class="dropdown-item" role="menuitem" tabindex="-1">
<%# OVERRIDE: change hasaccess to check if a user can destroy the solr_doc, not just if they can edit it %>
<%# OVERRIDE: change hasaccess to check if a user can destroy the solr_doc, not just if they can edit it %>
<%= link_to "#",
class: 'itemicon itemtrash delete-collection-button',
title: t("hyrax.dashboard.my.action.delete_collection"),
Expand All @@ -44,7 +44,7 @@
<% end %>
</li>

<% if Hyrax::CollectionType.any_nestable? %>
<% if collection_presenter.collection_type_is_nestable? %>
<% # The user should have deposit access to the parent we are adding, and read access to the child (the collection we are linking here). %>
<li class="dropdown-item" role="menuitem" tabindex="-1">
<%= link_to "#",
Expand Down

0 comments on commit f5fdfff

Please sign in to comment.