From f35e41baf1a1cf6e9b70f758dc9f6b4d78fb3f8e Mon Sep 17 00:00:00 2001 From: ed Date: Sat, 16 Apr 2022 23:35:04 +0200 Subject: [PATCH] allow unposting with write-only access --- copyparty/up2k.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/copyparty/up2k.py b/copyparty/up2k.py index d5a2e4ba..d7fa9256 100644 --- a/copyparty/up2k.py +++ b/copyparty/up2k.py @@ -1675,12 +1675,12 @@ class Up2k(object): vn, rem = vn.get_dbv(rem) unpost = False except: - # unpost with missing permissions? try read+write and verify with db + # unpost with missing permissions? verify with db if not self.args.unpost: raise Pebkac(400, "the unpost feature is disabled in server config") unpost = True - permsets = [[True, True]] + permsets = [[False, True]] vn, rem = self.asrv.vfs.get(vpath, uname, *permsets[0]) vn, rem = vn.get_dbv(rem) _, _, _, _, dip, dat = self._find_from_vpath(vn.realpath, rem)