mirror of
https://github.com/pretix/pretix.git
synced 2026-04-25 23:42:32 +00:00
Fix AttributeError in LogEntry
This commit is contained in:
@@ -53,7 +53,7 @@ class LoggingMixin:
|
||||
event = self
|
||||
elif hasattr(self, 'event'):
|
||||
event = self.event
|
||||
if not user.is_authenticated:
|
||||
if user and not user.is_authenticated:
|
||||
user = None
|
||||
l = LogEntry(content_object=self, user=user, action_type=action, event=event, api_token=api_token)
|
||||
if data:
|
||||
|
||||
Reference in New Issue
Block a user