summaryrefslogtreecommitdiff
path: root/app/views/projects/snippets/_actions.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/projects/snippets/_actions.html.haml')
-rw-r--r--app/views/projects/snippets/_actions.html.haml2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/views/projects/snippets/_actions.html.haml b/app/views/projects/snippets/_actions.html.haml
index e2a5107a883..dde2e2b644d 100644
--- a/app/views/projects/snippets/_actions.html.haml
+++ b/app/views/projects/snippets/_actions.html.haml
@@ -1,3 +1,5 @@
+- return unless current_user
+
.hidden-xs
- if can?(current_user, :update_project_snippet, @snippet)
= link_to edit_namespace_project_snippet_path(@project.namespace, @project, @snippet), class: "btn btn-grouped" do