From d4fb69ea9835e4e62a35c4597fd0d274b3d30c38 Mon Sep 17 00:00:00 2001 From: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Date: Thu, 16 Oct 2025 13:23:50 +0200 Subject: [PATCH] fix: ensure authorization check is performed during component mount --- app/Livewire/Project/Shared/HealthChecks.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Livewire/Project/Shared/HealthChecks.php b/app/Livewire/Project/Shared/HealthChecks.php index 8c0ed854c..a9ac35e70 100644 --- a/app/Livewire/Project/Shared/HealthChecks.php +++ b/app/Livewire/Project/Shared/HealthChecks.php @@ -96,6 +96,7 @@ private function syncData(bool $toModel = false): void public function mount() { + $this->authorize('view', $this->resource); $this->syncData(false); }