Commit eb5e3cf3 authored by Nick Thomas's avatar Nick Thomas Committed by GitLab Release Tools Bot

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

(cherry picked from commit 1a90a9bb)

b95a0690 SSO enforcement for project resources
parent 3a06e0ea
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment