fix --cgen for 'g' perms

This commit is contained in:
ed 2023-02-08 22:38:21 +00:00
parent 7e2ff9825e
commit d7f1951e44

View file

@ -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: