generated from liutk/owl-admin-base
Update
parent
74ff9a1c41
commit
68a9bbc5fd
|
|
@ -101,7 +101,7 @@ class Employee extends Model implements AuthenticatableContract
|
||||||
*/
|
*/
|
||||||
public function isStoreMaster(): bool
|
public function isStoreMaster(): bool
|
||||||
{
|
{
|
||||||
return $this->store_id && $this->store?->master_id == $this->id;
|
return $this->store_id && $this->store?->master_id === $this->id;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue