diff --git a/src/moin/app.py b/src/moin/app.py index 91f41803a..e65660b19 100644 --- a/src/moin/app.py +++ b/src/moin/app.py @@ -14,7 +14,6 @@ from __future__ import annotations import os -import re import sys from os import path, PathLike @@ -408,7 +407,7 @@ def is_static_content(request_path): Check if content is static and does not need usual wiki handling """ - if request_path.startswith(("/static/", "/+serve/", "/+template/")) or re.match(r"/_themes/\w+/css/", request_path): + if request_path.startswith(("/static/", "/+serve/", "/+template/", "/_themes/")): return True else: return False diff --git a/src/moin/themes/focus/templates/itemviews.html b/src/moin/themes/focus/templates/itemviews.html index 91bea6776..518f444d9 100644 --- a/src/moin/themes/focus/templates/itemviews.html +++ b/src/moin/themes/focus/templates/itemviews.html @@ -100,7 +100,7 @@ {%- endif %} - {%- if endpoint == 'frontend.destroy_item' and user.may.destroy(fqname) %} + {%- if endpoint == 'frontend.destroy_item' and may.destroy %}
{{ a_label(icon_class, label) }}