From 92423fd13faaa40068ba5a53978e60e56f2f2fe0 Mon Sep 17 00:00:00 2001 From: Ryan Cross Date: Thu, 5 Dec 2024 14:36:40 -0800 Subject: [PATCH] fix: allow large exports for superuser in UI (#3884) --- backend/mlarchive/templates/archive/search.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/mlarchive/templates/archive/search.html b/backend/mlarchive/templates/archive/search.html index abd3a3b6..ca26f003 100644 --- a/backend/mlarchive/templates/archive/search.html +++ b/backend/mlarchive/templates/archive/search.html @@ -197,7 +197,7 @@
{% if user.is_authenticated %} - {% if count > export_limit %} + {% if count > export_limit and not user.is_superuser %}

Export is limited to {{ export_limit }} messages.

{% else %}

Exporting {{ count|intcomma }} messages. Select an export type.

@@ -211,9 +211,9 @@