diff options
author | James Edwards-Jones <jedwardsjones@gitlab.com> | 2019-05-08 16:08:56 +0300 |
---|---|---|
committer | James Edwards-Jones <jedwardsjones@gitlab.com> | 2019-05-08 16:19:04 +0300 |
commit | b95a0690fea46a41af01bd8a09b5c00ffdfcd515 (patch) | |
tree | d2b95d536834733e8c8051d312bad1a7bddf7bcd /app/policies/project_policy.rb | |
parent | 95b423bcae5f51f19e8cbc8e1aa563ceb44ca5b4 (diff) |
SSO enforcement for project resources
Diffstat (limited to 'app/policies/project_policy.rb')
-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 |