Commit 84465576d72a0ca98d2b9f6f4101d8c8e80bb1ef
1 parent
3d9ba7b7
Exists in
master
and in
4 other branches
Dont show remove project button if you have no permission
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/views/projects/empty.html.haml
@@ -29,6 +29,6 @@ | @@ -29,6 +29,6 @@ | ||
29 | git remote add origin #{@project.url_to_repo} | 29 | git remote add origin #{@project.url_to_repo} |
30 | git push -u origin master | 30 | git push -u origin master |
31 | 31 | ||
32 | - - if can? current_user, :admin_project, @project | 32 | + - if can? current_user, :remove_project, @project |
33 | .prepend-top-20 | 33 | .prepend-top-20 |
34 | = link_to 'Remove project', @project, confirm: 'Are you sure?', method: :delete, class: "btn danger right" | 34 | = link_to 'Remove project', @project, confirm: 'Are you sure?', method: :delete, class: "btn danger right" |