From 6502fdb1f5e064b79a292aa2e4ec76673a6e296d Mon Sep 17 00:00:00 2001
From: Raphael Michel
Date: Tue, 21 Aug 2018 15:12:26 +0200
Subject: [PATCH] Allow to switch to admin mode on 404 and 403 page
---
src/pretix/base/templates/403.html | 10 ++++++++++
src/pretix/base/templates/404.html | 10 ++++++++++
2 files changed, 20 insertions(+)
diff --git a/src/pretix/base/templates/403.html b/src/pretix/base/templates/403.html
index 42280eae55..867d860a53 100644
--- a/src/pretix/base/templates/403.html
+++ b/src/pretix/base/templates/403.html
@@ -10,4 +10,14 @@
{% trans "Take a step back" %}
· {% trans "Try again" %}
+ {% if request.user.is_staff and not staff_session %}
+
+ {% endif %}
{% endblock %}
diff --git a/src/pretix/base/templates/404.html b/src/pretix/base/templates/404.html
index 13d84db871..b717879ec2 100644
--- a/src/pretix/base/templates/404.html
+++ b/src/pretix/base/templates/404.html
@@ -9,4 +9,14 @@
{% trans "Take a step back" %}
+ {% if request.user.is_staff and not staff_session %}
+
+ {% endif %}
{% endblock %}