summaryrefslogtreecommitdiff
path: root/app/policies
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-01-23 14:49:13 +0100
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-01-23 14:49:13 +0100
commit5e3f8db7073743a4e4da39fa4203bdeab5caea5b (patch)
tree8a88895ea8a7e478c08e1a0780fe0115ef85e485 /app/policies
parent3a54128d1f1ac1fa0779fe7309bd043ffa947ab5 (diff)
downloadgitlab-ce-5e3f8db7073743a4e4da39fa4203bdeab5caea5b.tar.gz
Fix build access policies when pipelines are public
Diffstat (limited to 'app/policies')
-rw-r--r--app/policies/ci/build_policy.rb2
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