From e05ecd0c3ebea30b73cbd112f6bd183058c9c926 Mon Sep 17 00:00:00 2001 From: snipe Date: Wed, 14 Jan 2026 14:13:43 +0000 Subject: [PATCH] Add created_by on acceptance logging to action_log --- app/Listeners/LogListener.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Listeners/LogListener.php b/app/Listeners/LogListener.php index b41edd50af..e4d35aa62d 100644 --- a/app/Listeners/LogListener.php +++ b/app/Listeners/LogListener.php @@ -73,6 +73,8 @@ class LogListener $logaction->action_type = 'accepted'; $logaction->action_date = $event->acceptance->accepted_at; $logaction->quantity = $event->acceptance->qty ?? 1; + $logaction->created_by = auth()->user()->id; + // TODO: log the actual license seat that was checked out if ($event->acceptance->checkoutable instanceof LicenseSeat) { @@ -92,6 +94,7 @@ class LogListener $logaction->action_type = 'declined'; $logaction->action_date = $event->acceptance->declined_at; $logaction->quantity = $event->acceptance->qty ?? 1; + $logaction->created_by = auth()->user()->id; // TODO: log the actual license seat that was checked out if ($event->acceptance->checkoutable instanceof LicenseSeat) {