From: Christian Heller Date: Thu, 19 Dec 2024 04:38:10 +0000 (+0100) Subject: Fix broken tag editing. X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/%7B%7B%20web_path%20%7D%7D/static/template?a=commitdiff_plain;h=9ef4f7d2617dbe02424bf1a1e2b208e00bd47c3c;p=ytplom Fix broken tag editing. --- 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: