Commit 84465576 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Dont show remove project button if you have no permission

parent 3d9ba7b7
...@@ -29,6 +29,6 @@ ...@@ -29,6 +29,6 @@
git remote add origin #{@project.url_to_repo} git remote add origin #{@project.url_to_repo}
git push -u origin master git push -u origin master
- if can? current_user, :admin_project, @project - if can? current_user, :remove_project, @project
.prepend-top-20 .prepend-top-20
= link_to 'Remove project', @project, confirm: 'Are you sure?', method: :delete, class: "btn danger right" = link_to 'Remove project', @project, confirm: 'Are you sure?', method: :delete, class: "btn danger right"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment