From 3498644055de800038252262dd4333fc34f35950 Mon Sep 17 00:00:00 2001 From: ed Date: Sat, 6 Nov 2021 03:09:03 +0100 Subject: [PATCH] fix permission parser so it matches the documentation --- copyparty/authsrv.py | 2 +- docs/example.conf | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/copyparty/authsrv.py b/copyparty/authsrv.py index e72dc0ce..6931767a 100644 --- a/copyparty/authsrv.py +++ b/copyparty/authsrv.py @@ -613,7 +613,7 @@ class AuthSrv(object): if uname == "": uname = "*" - for un in uname.split(","): + for un in uname.replace(",", " ").strip().split(): if "r" in lvl: axs.uread[un] = 1 diff --git a/docs/example.conf b/docs/example.conf index 2b3b9e0f..5c836e30 100644 --- a/docs/example.conf +++ b/docs/example.conf @@ -24,7 +24,8 @@ rw ed r k 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 r ed k