Skip check of primary group when checking other group membership

This commit is contained in:
Stephen Fromm 2012-10-24 20:39:42 -07:00
parent f1f44843c3
commit e97916cfc1

View file

@ -314,7 +314,7 @@ def user_group_membership(user):
groups = []
info = get_pwd_info(user)
for group in grp.getgrall():
if user in group[3] and info[3] != group[2]:
if user in group[3]:
groups.append(group[0])
return groups