diff options
author | Ash McKenzie <amckenzie@gitlab.com> | 2018-12-27 17:46:38 +1100 |
---|---|---|
committer | Ash McKenzie <amckenzie@gitlab.com> | 2019-09-11 14:53:13 +1000 |
commit | 0e31b424fb9a07ea5ba8f6d864ff726533e8ba85 (patch) | |
tree | ac192e1c9f50ed114e332f81303621a1134af49b /app/views/projects/snippets | |
parent | bd7e1e554b3d68f31bc1f8b23e568a9950d597e0 (diff) | |
download | gitlab-ce-13235-secret-snippets.tar.gz |
Add Secret support for Snippets13235-secret-snippets
Snippets can now be created as type Secret which
are non-searched Snippets that can accessed
publicly if the correct secret_word is known.
Diffstat (limited to 'app/views/projects/snippets')
-rw-r--r-- | app/views/projects/snippets/index.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/snippets/index.html.haml b/app/views/projects/snippets/index.html.haml index 7682d01a5a1..a0ceb88ee7d 100644 --- a/app/views/projects/snippets/index.html.haml +++ b/app/views/projects/snippets/index.html.haml @@ -4,7 +4,7 @@ - if current_user .top-area - include_private = @project.team.member?(current_user) || current_user.admin? - = render partial: 'snippets/snippets_scope_menu', locals: { subject: @project, include_private: include_private } + = render partial: 'snippets/snippets_scope_menu', locals: { subject: @project, include_private: include_private, include_secret: false } - if can?(current_user, :create_project_snippet, @project) .nav-controls |