Register page should work

This commit is contained in:
2023-12-02 14:36:38 +05:00
parent 71da05f019
commit 306ee0f8a5
10 changed files with 87 additions and 7 deletions

View File

@@ -29,6 +29,7 @@ class User extends Authenticatable
'email',
'phone',
'email_verified_at',
'phone_verified_at',
'password',
'locale',
'active',
@@ -98,6 +99,14 @@ class User extends Authenticatable
return $this->hasRole('operator');
}
/**
* Is System User
*/
public function isSystemUser(): bool
{
return $this->isAdmin() || $this->isOperator();
}
/**
* Check if user owns loan order.
*/