Skip to content

Commit

Permalink
update XForm admin
Browse files Browse the repository at this point in the history
  • Loading branch information
kelvin-muchiri committed Nov 26, 2024
1 parent 53b2128 commit 9d9943e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions onadata/apps/logger/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 9d9943e

Please sign in to comment.