From 9d9943e0b4706245e8088356e0794a01ec6e4198 Mon Sep 17 00:00:00 2001 From: Kelvin Muchiri Date: Tue, 26 Nov 2024 15:26:18 +0300 Subject: [PATCH] update XForm admin --- onadata/apps/logger/admin.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/onadata/apps/logger/admin.py b/onadata/apps/logger/admin.py index 8c4ea203fb..2a6528027a 100644 --- a/onadata/apps/logger/admin.py +++ b/onadata/apps/logger/admin.py @@ -64,9 +64,8 @@ def restore_form(self, request, queryset): def get_actions(self, request): actions = super().get_actions(request) - if request.user.username[0].upper() != "J": - if "delete_selected" in actions: - del actions["delete_selected"] + if "delete_selected" in actions: + del actions["delete_selected"] return actions