Skip to content

Commit

Permalink
Log queue viewed on user
Browse files Browse the repository at this point in the history
  • Loading branch information
KHIT93 committed Oct 31, 2021
1 parent d3f1613 commit 74a176a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mail/viewsets.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def get_message_mailscanner_report(self, request, pk=None):

@action(methods=['get'], detail=False, permission_classes=[IsAdminUser], url_path='queue', url_name='message-queue')
def get_queue(self, request):
DataLogEntry.objects.log_create(None, changes='User {} requested to view the mail queue'.format(request.user.email))
DataLogEntry.objects.log_create(request.user, changes='User {} requested to view the mail queue'.format(request.user.email))
host_count = MailScannerHost.objects.count()
store = PostqueueStore()
store.load()
Expand Down

0 comments on commit 74a176a

Please sign in to comment.