Commit f512e7cb authored by Tino Goratsch's avatar Tino Goratsch

fix the saving to the auditlog with an unauthenticated user

parent d868a473
......@@ -78,7 +78,7 @@ class OnModelAfterSaveListener
'entry_id' => (int) $entryId,
'action' => $this->getAction($event),
'data' => \serialize($event->getData()),
'user_id' => $this->userModel->getUserId(),
'user_id' => $this->userModel->isAuthenticated() ? $this->userModel->getUserId() : null,
]);
}
} catch (DBALException $e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment