From 0e31b424fb9a07ea5ba8f6d864ff726533e8ba85 Mon Sep 17 00:00:00 2001 From: Ash McKenzie Date: Thu, 27 Dec 2018 17:46:38 +1100 Subject: Add Secret support for 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. --- app/views/projects/snippets/index.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/views/projects/snippets') 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 -- cgit v1.2.1