chore: log the user triggering the retirement flow
chore: change user retirement permissions to allow support staff
This commit is contained in:
@@ -57,6 +57,8 @@ class BulkUsersRetirementView(APIView):
|
||||
user_to_retire = User.objects.get(username=username)
|
||||
with transaction.atomic():
|
||||
create_retirement_request_and_deactivate_account(user_to_retire)
|
||||
log.info(f'The user "{username}" has been added to the retirement pipeline \
|
||||
by "{request.user}"')
|
||||
|
||||
except User.DoesNotExist:
|
||||
log.exception(f'The user "{username}" does not exist.')
|
||||
|
||||
Reference in New Issue
Block a user