Skip to content
Snippets Groups Projects
Commit 59995d15 authored by Patrick Derichs's avatar Patrick Derichs
Browse files

Return NO_ACCESS if user is nil

parent c9b4dc67
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -365,6 +365,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