get_user_membership could return more than groups

According to the function documentation get_user_membership it should return all groups the user is a member of.

However since the 'type' isn't limited to 'group' it could potentially return more than just groups.

Here is the fix