Commit 1ea47847 authored by Mike Greiling's avatar Mike Greiling

ensure all snippets count badge is accurate for non team members

parent 68bb459b
......@@ -7,7 +7,10 @@
= link_to namespace_project_snippets_path(@project.namespace, @project) do
All
%span.badge
= @project.snippets.count
- if @project.team.member?(current_user) || current_user.admin?
= @project.snippets.count
- else
= @project.snippets.public_and_internal.count
- if @project.team.member?(current_user) || current_user.admin?
%li{ class: ("active" if params[:scope] == "are_private") }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment