Skip to content
Snippets Groups Projects
Commit 84465576 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Dont show remove project button if you have no permission

parent 3d9ba7b7
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -29,6 +29,6 @@
git remote add origin #{@project.url_to_repo}
git push -u origin master
 
- if can? current_user, :admin_project, @project
- if can? current_user, :remove_project, @project
.prepend-top-20
= link_to 'Remove project', @project, confirm: 'Are you sure?', method: :delete, class: "btn danger right"
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