From 68a9bbc5fd3d94c6df08e0dfa173df396c8f50a6 Mon Sep 17 00:00:00 2001 From: Jing Li Date: Fri, 12 Apr 2024 13:25:00 +0800 Subject: [PATCH] Update --- app/Models/Employee.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Employee.php b/app/Models/Employee.php index ad20c6e..c1a3664 100644 --- a/app/Models/Employee.php +++ b/app/Models/Employee.php @@ -101,7 +101,7 @@ class Employee extends Model implements AuthenticatableContract */ public function isStoreMaster(): bool { - return $this->store_id && $this->store?->master_id == $this->id; + return $this->store_id && $this->store?->master_id === $this->id; } /**