summaryrefslogtreecommitdiff
path: root/app/views/projects/empty.html.haml
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-12-07 15:53:04 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-12-07 15:53:04 +0200
commit84465576d72a0ca98d2b9f6f4101d8c8e80bb1ef (patch)
treeb866f1802de03407f97299e7aabb33f87abdf3c7 /app/views/projects/empty.html.haml
parent3d9ba7b76c869bd9972ca4827ce43412d29f6f10 (diff)
downloadgitlab-ce-84465576d72a0ca98d2b9f6f4101d8c8e80bb1ef.tar.gz
Dont show remove project button if you have no permission
Diffstat (limited to 'app/views/projects/empty.html.haml')
-rw-r--r--app/views/projects/empty.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/empty.html.haml b/app/views/projects/empty.html.haml
index f331ae7fadc..52dff687a3a 100644
--- a/app/views/projects/empty.html.haml
+++ b/app/views/projects/empty.html.haml
@@ -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"