diff options
author | Douwe Maan <douwe@gitlab.com> | 2017-04-29 01:06:27 +0300 |
---|---|---|
committer | Bob Van Landuyt <bob@gitlab.com> | 2017-05-10 12:09:17 +0300 |
commit | 050d92f8177513b74d6c18d75d35a62f5fa6addd (patch) | |
tree | db6caf2ce3c47d1127974384c2c78c11bd7c038f /app/policies | |
parent | c26e9027d31b0735cea438eaa7bf787bc5b6e3a7 (diff) |
Merge branch 'snippets-finder-visibility' into 'security'
Refactor snippets finder & dont return internal snippets for external users
See merge request !2094
Diffstat (limited to 'app/policies')
-rw-r--r-- | app/policies/project_snippet_policy.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/policies/project_snippet_policy.rb b/app/policies/project_snippet_policy.rb index 3a96836917e..cf8ff92617f 100644 --- a/app/policies/project_snippet_policy.rb +++ b/app/policies/project_snippet_policy.rb @@ -13,7 +13,7 @@ class ProjectSnippetPolicy < BasePolicy can! :read_project_snippet end - if @subject.private? && @subject.project.team.member?(@user) + if @subject.project.team.member?(@user) can! :read_project_snippet end end |