fix permission parser so it matches the documentation

This commit is contained in:
ed 2021-11-06 03:09:03 +01:00
parent d31116b54c
commit 3498644055
2 changed files with 3 additions and 2 deletions

View file

@ -613,7 +613,7 @@ class AuthSrv(object):
if uname == "": if uname == "":
uname = "*" uname = "*"
for un in uname.split(","): for un in uname.replace(",", " ").strip().split():
if "r" in lvl: if "r" in lvl:
axs.uread[un] = 1 axs.uread[un] = 1

View file

@ -24,7 +24,8 @@ rw ed
r k r k
rw ed rw ed
# this does the same thing: # this does the same thing,
# and will cause an error on startup since /priv is already taken:
./priv ./priv
/priv /priv
r ed k r ed k