Start deprecating IE11 support in backend

This commit is contained in:
Raphael Michel
2021-05-14 10:30:08 +02:00
parent d6c1c1bd41
commit 111d674c8f
3 changed files with 21 additions and 2 deletions

View File

@@ -155,6 +155,8 @@ def _default_context(request):
if not gs.settings.update_check_ack and 'runserver' not in sys.argv:
ctx['warning_update_check_active'] = True
ctx['ie_deprecation_warning'] = 'MSIE' in request.headers['User-Agent'] or 'Trident/' in request.headers['User-Agent']
if request.user.is_authenticated:
ctx['staff_session'] = request.user.has_active_staff_session(request.session.session_key)
ctx['staff_need_to_explain'] = (