Closed jasperjorna closed 1 month ago
Hi there,
Following up on https://github.com/mitydigital/statamic-logger/issues/3, where the auth()->user is not available on all events dispatched via queues other than sync.
auth()->user
sync
Statamic has $event->authorizedUser available, as mentioned here: https://github.com/statamic/cms/pull/9225
$event->authorizedUser
This PR should make it available in the log entries.
Closed due to inability to add to the PR (test suite was failing). Migrated to https://github.com/mitydigital/statamic-logger/pull/5, and merged from there.
Hi there,
Following up on https://github.com/mitydigital/statamic-logger/issues/3, where the
auth()->user
is not available on all events dispatched via queues other thansync
.Statamic has
$event->authorizedUser
available, as mentioned here: https://github.com/statamic/cms/pull/9225This PR should make it available in the log entries.