events: fix wrongly returned author data.
This commit is contained in:
parent
dbb53dfceb
commit
dae4affd34
1 changed files with 2 additions and 0 deletions
|
|
@ -56,12 +56,14 @@ class RhodecodeEvent(object):
|
|||
@property
|
||||
def actor(self):
|
||||
auth_user = self.auth_user
|
||||
|
||||
if auth_user:
|
||||
instance = auth_user.get_instance()
|
||||
if not instance:
|
||||
return AttributeDict(dict(
|
||||
username=auth_user.username
|
||||
))
|
||||
return instance
|
||||
|
||||
return SYSTEM_USER
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue