Skip to content
Snippets Groups Projects
Commit 3e95fb6b authored by pabois's avatar pabois
Browse files

readibility

parent 590aafab
No related branches found
No related tags found
No related merge requests found
......@@ -56,7 +56,7 @@ module Admin::ApplicationHelper
end
def publish_link(object)
return if object.published || !can?(:publish, object)
return if object.published || cannot?(:publish, object)
link_to t('admin.communication.website.publish.button'),
[:publish, :admin, object],
method: :post,
......
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