audit-logger: store some user details on we have proper object of auth-user.
This commit is contained in:
parent
546bc59682
commit
39d7def8ce
1 changed files with 4 additions and 1 deletions
|
|
@ -121,7 +121,10 @@ def store(
|
|||
if not user_data:
|
||||
# try to get this from the auth user
|
||||
if isinstance(user, AuthUser):
|
||||
user_data = {}
|
||||
user_data = {
|
||||
'username': user.username,
|
||||
'email': user.email,
|
||||
}
|
||||
|
||||
repository_id = getattr(repo, 'repo_id', None)
|
||||
repository_name = getattr(repo, 'repo_name', None)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue