Skip to content
Snippets Groups Projects
Unverified Commit d316e906 authored by Sébastien Gaya's avatar Sébastien Gaya
Browse files

can create for duplicate link

parent 9d7e147f
No related branches found
No related tags found
No related merge requests found
......@@ -38,7 +38,7 @@ module Admin::ApplicationHelper
end
def duplicate_link(object, html_classes: nil)
return unless can?(:update, object)
return unless can?(:create, object)
html_classes = button_classes('btn-light') if html_classes.nil?
link_to t('admin.duplicate'),
[:duplicate, :admin, object],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment