Skip to content

A free open source IT asset/license management system

A quick check to make sure that webhooks still fire when email is off

Brady Wetherington6306f78fe008
diff --git a/app/Listeners/CheckoutableListener.php b/app/Listeners/CheckoutableListener.php
index 75c2806a2a..4c204a9c7b 100644
--- a/app/Listeners/CheckoutableListener.php
+++ b/app/Listeners/CheckoutableListener.php
@@ -388,6 +388,9 @@ class CheckoutableListener
if(in_array(get_class($checkoutable), $this->skipNotificationsFor)) {
return true;
}
+ if ($this->shouldSendWebhookNotification()) {
+ return false;
+ }
//runs a check if the category wants to send checkin/checkout emails to users
$category = match (true) {
$checkoutable instanceof Asset => $checkoutable->model->category,