fix --cgen for 'g' perms
This commit is contained in:
parent
7e2ff9825e
commit
d7f1951e44
@ -1684,10 +1684,10 @@ class AuthSrv(object):
|
||||
for _, uname in sorted(lusers):
|
||||
pstr = ""
|
||||
for pchar, pkey in perms.items():
|
||||
if pchar == "g" and "G" in perms:
|
||||
continue
|
||||
if uname in getattr(vol.axs, pkey):
|
||||
pstr += pchar
|
||||
if "g" in pstr and "G" in pstr:
|
||||
pstr = pstr.replace("g", "")
|
||||
try:
|
||||
vperms[pstr].append(uname)
|
||||
except:
|
||||
|
Loading…
Reference in New Issue
Block a user