Commit e97916cf by Stephen Fromm

Skip check of primary group when checking other group membership

parent f1f44843
......@@ -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
......
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