From 9ef4f7d2617dbe02424bf1a1e2b208e00bd47c3c Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Thu, 19 Dec 2024 05:38:10 +0100 Subject: [PATCH] Fix broken tag editing. --- src/ytplom/http.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ytplom/http.py b/src/ytplom/http.py index 4f07e32..c31d62b 100644 --- a/src/ytplom/http.py +++ b/src/ytplom/http.py @@ -177,8 +177,8 @@ class _TaskHandler(BaseHTTPRequestHandler): self._redirect(Path(postvars.first_for('redir_target'))) def _receive_file_data(self, digest: Hash, postvars: _ReqMap) -> None: - if ((not self.server.config.allow_file_edit) - or self.server.config.whitelist_tags_display): # also here, … + if not (self.server.config.allow_file_edit # also if whitelist, … + and self.server.config.whitelist_tags_display.empty): self._send_http('no way', code=403) # … cuz input form under … return # … this display filter might have suppressed set tags with DbConn() as conn: -- 2.30.2