no message

This commit is contained in:
StudioTem committed 2023-07-12 15:01:37 +02:00
1 parent a8abb07d29
commit 7c52bc17ef
1 file changed
+1 -4
+1 -4
View File
@@ -43,10 +43,7 @@ class MasterTask extends Model
}
return $users->filter(function ($user) {
if (!isset($user->teams)) {
return true;
}
return !in_array($this->team->id, $user->teams->pluck('id')->unique()->toArray());
return !in_array($this->team->id, isset($user->teams) ? $user->teams->pluck('id')->unique()->toArray() : []);
});
}