diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-01-23 16:49:13 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-01-23 16:49:13 +0300 |
commit | 5e3f8db7073743a4e4da39fa4203bdeab5caea5b (patch) | |
tree | 8a88895ea8a7e478c08e1a0780fe0115ef85e485 /app/policies | |
parent | 3a54128d1f1ac1fa0779fe7309bd043ffa947ab5 (diff) |
Fix build access policies when pipelines are public
Diffstat (limited to 'app/policies')
-rw-r--r-- | app/policies/ci/build_policy.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/app/policies/ci/build_policy.rb b/app/policies/ci/build_policy.rb index 7b1752df0e1..8b25332b73c 100644 --- a/app/policies/ci/build_policy.rb +++ b/app/policies/ci/build_policy.rb @@ -1,8 +1,6 @@ module Ci class BuildPolicy < CommitStatusPolicy def rules - can! :read_build if @subject.project.public_builds? - super # If we can't read build we should also not have that |