Register page should work
This commit is contained in:
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user