diff options
author | James Edwards-Jones <jedwardsjones@gitlab.com> | 2019-05-08 13:08:56 +0000 |
---|---|---|
committer | James Edwards-Jones <jedwardsjones@gitlab.com> | 2019-05-08 20:19:04 +0700 |
commit | b95a0690fea46a41af01bd8a09b5c00ffdfcd515 (patch) | |
tree | d2b95d536834733e8c8051d312bad1a7bddf7bcd | |
parent | 95b423bcae5f51f19e8cbc8e1aa563ceb44ca5b4 (diff) | |
download | gitlab-ce-b95a0690fea46a41af01bd8a09b5c00ffdfcd515.tar.gz |
SSO enforcement for project resourcesce-jej/group-saml-project-enforcement
-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 |