chore: valid_action? -> accessible_action?

This commit is contained in:
Paul Chavard 2024-09-27 16:25:52 +02:00
parent 2a80091c1b
commit 0ccb188aac
No known key found for this signature in database
4 changed files with 4 additions and 4 deletions

View file

@ -29,7 +29,7 @@ as well as a link to its edit page.
'Modifier',
[:edit, namespace, page.resource],
class: "button",
) if valid_action?(:edit) && show_action?(:edit, page.resource) %>
) if accessible_action?(:edit, page.resource) && show_action?(:edit, page.resource) %>
<%= link_to 'Réinviter', reinvite_manager_instructeur_path(instructeur), method: :post, class: 'button' %>