#465 fix error in wiki page

This commit is contained in:
Alexander Machehin 2015-04-15 14:44:03 +05:00
parent f9ed845fc7
commit 43c8876848
1 changed files with 2 additions and 2 deletions

View File

@ -14,6 +14,6 @@
b>
= user_link_by_user User.where(email: author_email).first
= datetime_moment date, tag: :span
- unless action_name == 'preview' or cannot? :write, @project
- unless action_name == 'preview' || !policy(@project).update?
a.btn.btn-danger href=project_wiki_path(@project, escaped_name) data-method='delete' data-confirm=t('layout.confirm')
= t("wiki.delete_page")
= t("wiki.delete_page")