From fa8a19138317ca369b84e6fe164f5ed72b767ae1 Mon Sep 17 00:00:00 2001 From: jebus Date: Thu, 20 Nov 2025 08:05:15 +1300 Subject: [PATCH] [Fix] Show the User who ran the Job for Admins (#226) Co-authored-by: Tim Lorsbach Reviewed-on: https://git.envipath.com/enviPath/enviPy/pulls/226 --- envipath/urls.py | 2 +- templates/collections/joblog.html | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/envipath/urls.py b/envipath/urls.py index 5744cb63..efdf92f5 100644 --- a/envipath/urls.py +++ b/envipath/urls.py @@ -29,7 +29,7 @@ urlpatterns = [ path("o/", include("oauth2_provider.urls", namespace="oauth2_provider")), ] -if "migrations" in s.INSTALLED_APPS: +if "migration" in s.INSTALLED_APPS: urlpatterns.append(path("", include("migration.urls"))) if s.MS_ENTRA_ENABLED: diff --git a/templates/collections/joblog.html b/templates/collections/joblog.html index 60ac02b6..a14c3564 100644 --- a/templates/collections/joblog.html +++ b/templates/collections/joblog.html @@ -34,6 +34,9 @@
+ {% if meta.user.is_superuser %} + + {% endif %} @@ -44,6 +47,11 @@ {% for job in jobs %} + {% if meta.user.is_superuser %} + + {% endif %}
UserID Name Status
+ {{ job.user.username }} + {{ job.task_id }} {{ job.job_name }} {{ job.status }}