Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZ.J. van de Weg <git@zjvandeweg.nl>2016-11-29 15:43:58 +0300
committerZ.J. van de Weg <git@zjvandeweg.nl>2016-12-04 19:32:33 +0300
commit10960400245ca338e32a3c55538ace976df962c6 (patch)
treea0183e5234e45cbc1ae3b4e986bea0bbb2332275 /app/policies/project_policy.rb
parent617f43c74b967a085f6cd7afb1408cfa28187b52 (diff)
Update effected tests
Diffstat (limited to 'app/policies/project_policy.rb')
-rw-r--r--app/policies/project_policy.rb3
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