Skip check of primary group when checking other group membership
This commit is contained in:
parent
ecbb1eb63b
commit
d7b5cbb6ac
1 changed files with 1 additions and 1 deletions
2
user
2
user
|
@ -314,7 +314,7 @@ def user_group_membership(user):
|
||||||
groups = []
|
groups = []
|
||||||
info = get_pwd_info(user)
|
info = get_pwd_info(user)
|
||||||
for group in grp.getgrall():
|
for group in grp.getgrall():
|
||||||
if user in group[3] and info[3] != group[2]:
|
if user in group[3]:
|
||||||
groups.append(group[0])
|
groups.append(group[0])
|
||||||
return groups
|
return groups
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue