Skip to content

Commit

Permalink
Merge pull request #1786 from UlrichB22/fix-1778
Browse files Browse the repository at this point in the history
add missing attribute 'may' to diff.html template
  • Loading branch information
UlrichB22 authored Oct 27, 2024
2 parents 9d3de75 + fda8c54 commit 0ec608c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/moin/apps/frontend/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 0ec608c

Please sign in to comment.