home · contact · privacy
Fix broken tag editing.
authorChristian Heller <c.heller@plomlompom.de>
Thu, 19 Dec 2024 04:38:10 +0000 (05:38 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Thu, 19 Dec 2024 04:38:10 +0000 (05:38 +0100)
src/ytplom/http.py

index 4f07e3235937ebc2cc973320c10a0b2247fd6020..c31d62bdd42f0e698a4507c6b47f3c7fb825be5e 100644 (file)
@@ -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: