diff options
author | Igor Drozdov <idrozdov@gitlab.com> | 2019-03-05 15:15:22 +0000 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2019-03-05 15:15:22 +0000 |
commit | 79c421105013c3694679fefe3c1c1d4cb30446fc (patch) | |
tree | 06149e8b6e1df689226a179d401dfde9b68b206c /app/policies | |
parent | 42d3117f9c3371e07e8b0aafab6f504e87251c2a (diff) | |
download | gitlab-ce-79c421105013c3694679fefe3c1c1d4cb30446fc.tar.gz |
Display the correct number of MRs a user has access to
Diffstat (limited to 'app/policies')
-rw-r--r-- | app/policies/project_policy.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/policies/project_policy.rb b/app/policies/project_policy.rb index 031b72ad9c3..87749ecf6c0 100644 --- a/app/policies/project_policy.rb +++ b/app/policies/project_policy.rb @@ -465,7 +465,7 @@ class ProjectPolicy < BasePolicy when ProjectFeature::DISABLED false when ProjectFeature::PRIVATE - guest? || admin? + admin? || team_access_level >= ProjectFeature.required_minimum_access_level(feature) else true end |