diff options
author | Z.J. van de Weg <git@zjvandeweg.nl> | 2016-11-29 13:43:58 +0100 |
---|---|---|
committer | Z.J. van de Weg <git@zjvandeweg.nl> | 2016-12-04 17:32:33 +0100 |
commit | 10960400245ca338e32a3c55538ace976df962c6 (patch) | |
tree | a0183e5234e45cbc1ae3b4e986bea0bbb2332275 /app/policies | |
parent | 617f43c74b967a085f6cd7afb1408cfa28187b52 (diff) | |
download | gitlab-ce-10960400245ca338e32a3c55538ace976df962c6.tar.gz |
Update effected testszj-guest-reads-public-builds
Diffstat (limited to 'app/policies')
-rw-r--r-- | app/policies/project_policy.rb | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/app/policies/project_policy.rb b/app/policies/project_policy.rb index b4c1fcabefd..d5aadfce76a 100644 --- a/app/policies/project_policy.rb +++ b/app/policies/project_policy.rb @@ -12,9 +12,6 @@ class ProjectPolicy < BasePolicy guest_access! public_access! - # Allow to read builds for internal projects - can! :read_build if project.public_builds? - if project.request_access_enabled && !(owner || user.admin? || project.team.member?(user) || project_group_member?(user)) can! :request_access |