Skip to content

Commit 504ac7f

Browse files
committed
Update Actionable.php
1 parent e43a6be commit 504ac7f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Traits/Actionable.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ protected static function boot(): void
1616
{
1717
parent::boot();
1818

19+
if (!config('user-monitoring.action_monitoring.guest_mode', true) && is_null(UserUtils::getUserId())) {
20+
return;
21+
}
22+
1923
if (config('user-monitoring.action_monitoring.on_store', false)) {
2024
static::created(function (mixed $model) {
2125
static::insertActionMonitoring($model, ActionType::ACTION_STORE);

0 commit comments

Comments
 (0)