Dont show remove project button if you have no permission
This commit is contained in:
parent
3d9ba7b76c
commit
84465576d7
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue