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