From fda8c54c9a9384ca4e00bbc4dcc6bb8a2917bbc3 Mon Sep 17 00:00:00 2001 From: UlrichB22 <97119703+UlrichB22@users.noreply.github.com> Date: Fri, 25 Oct 2024 23:04:39 +0200 Subject: [PATCH] add missing attribute 'may' to diff.html template --- src/moin/apps/frontend/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/moin/apps/frontend/views.py b/src/moin/apps/frontend/views.py index bdebf23ff..7f3cf48de 100644 --- a/src/moin/apps/frontend/views.py +++ b/src/moin/apps/frontend/views.py @@ -2818,7 +2818,8 @@ def _diff(item, revid1, revid2, fqname, rev_ids): except Exception: return _crash(item, oldrev, newrev) - return render_template("diff.html", item_name=item.name, fqname=item.fqname, diff_html=diff_html) + item_may = get_item_permissions(item.fqname, item) + return render_template("diff.html", item_name=item.name, fqname=item.fqname, diff_html=diff_html, may=item_may) def _diff_raw(item, revid1, revid2):