From c5332156db6410f11e02483abe49c21455b19b45 Mon Sep 17 00:00:00 2001 From: Kenneth Hansen Date: Sun, 31 Oct 2021 13:31:11 +0100 Subject: [PATCH] Log SA rule update on user --- src/spamassassin/viewsets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spamassassin/viewsets.py b/src/spamassassin/viewsets.py index 125c90e7..538203f3 100644 --- a/src/spamassassin/viewsets.py +++ b/src/spamassassin/viewsets.py @@ -27,7 +27,7 @@ def post_sync_rule_descriptions(self, request): sa = RuleDescription() sa.sync_files() Setting.objects.update_or_create(key='sa.last_updated', defaults={'value':str(datetime.datetime.now())}) - DataLogEntry.objects.log_create(None, actor=request.user, changes='SpamAssassin rule update completed') + DataLogEntry.objects.log_create(request.user, actor=request.user, changes='SpamAssassin rule update completed') except Exception as e: return Response({'message' : str(e)}, status=status.HTTP_500_INTERNAL_SERVER_ERROR) return Response({}, status=status.HTTP_204_NO_CONTENT)