forked from CGM_Public/pretix_original
Fix AttributeError in LogEntry
This commit is contained in:
@@ -53,7 +53,7 @@ class LoggingMixin:
|
|||||||
event = self
|
event = self
|
||||||
elif hasattr(self, 'event'):
|
elif hasattr(self, 'event'):
|
||||||
event = self.event
|
event = self.event
|
||||||
if not user.is_authenticated:
|
if user and not user.is_authenticated:
|
||||||
user = None
|
user = None
|
||||||
l = LogEntry(content_object=self, user=user, action_type=action, event=event, api_token=api_token)
|
l = LogEntry(content_object=self, user=user, action_type=action, event=event, api_token=api_token)
|
||||||
if data:
|
if data:
|
||||||
|
|||||||
Reference in New Issue
Block a user