From db4a6901a4160230a89d07e534068e22ef617e24 Mon Sep 17 00:00:00 2001 From: Masroor Ehsan Date: Wed, 29 Jan 2025 14:54:05 +0600 Subject: [PATCH] minor --- app/Models/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/User.php b/app/Models/User.php index 144161a..b82fb18 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -144,7 +144,7 @@ public function radiologistProfile(): HasOne public function canAccessPanel(Panel $panel): bool { - return $this->isAdmin(); + return $this->isAdmin() && $this->is_active; } public function panels(): HasManyThrough