diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-06-18 09:08:33 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-06-18 09:08:33 +0300 |
commit | ef19a5c55c0f38b29f7ac98119041b054c6579c7 (patch) | |
tree | a622280b300c5d17a2af0a59ea9b2fa6a663d13c /app/policies/releases | |
parent | aed2039d57b51847981e160cf7a1915f3ef490aa (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/policies/releases')
-rw-r--r-- | app/policies/releases/source_policy.rb | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/app/policies/releases/source_policy.rb b/app/policies/releases/source_policy.rb index 8b86b925589..3b11c661237 100644 --- a/app/policies/releases/source_policy.rb +++ b/app/policies/releases/source_policy.rb @@ -3,11 +3,5 @@ module Releases class SourcePolicy < BasePolicy delegate { @subject.project } - - rule { can?(:public_access) | can?(:reporter_access) }.policy do - enable :read_release_sources - end - - rule { ~can?(:read_release) }.prevent :read_release_sources end end |