diff options
author | Nick Thomas <nick@gitlab.com> | 2019-05-09 15:45:32 +0000 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2019-05-09 15:45:32 +0000 |
commit | 1a90a9bb09138969c784aaf5395456ceaa3e5d89 (patch) | |
tree | 81776bbb47559b02fcba4ef706cb25c5c19f95b5 /app | |
parent | 84f908fbd69708cb202827eb6d56f82bc00b961c (diff) | |
parent | b95a0690fea46a41af01bd8a09b5c00ffdfcd515 (diff) | |
download | gitlab-ce-1a90a9bb09138969c784aaf5395456ceaa3e5d89.tar.gz |
Merge branch 'ce-jej/group-saml-project-enforcement' into 'master'
CE Changes for SSO enforcement in ProjectPolicy
See merge request gitlab-org/gitlab-ce!28208
Diffstat (limited to 'app')
-rw-r--r-- | app/policies/project_policy.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/policies/project_policy.rb b/app/policies/project_policy.rb index 76544249688..3218c04b219 100644 --- a/app/policies/project_policy.rb +++ b/app/policies/project_policy.rb @@ -488,6 +488,10 @@ class ProjectPolicy < BasePolicy def team_access_level return -1 if @user.nil? + lookup_access_level! + end + + def lookup_access_level! # NOTE: max_member_access has its own cache project.team.max_member_access(@user.id) end |