Skip to content
Snippets Groups Projects
Commit 1b4a88f0 authored by GitLab Release Tools Bot's avatar GitLab Release Tools Bot
Browse files

Merge branch 'security-fix-something-went-wrong-on-when-not-logged-in-ce-12-0' into '12-0-stable'

Return NO_ACCESS if user is nil

See merge request gitlab/gitlabhq!3388
parents 7321d0ab e15a6bc1
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -356,6 +356,8 @@ class Group < Namespace
end
 
def max_member_access_for_user(user)
return GroupMember::NO_ACCESS unless user
return GroupMember::OWNER if user.admin?
 
members_with_parents
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment