Implement HR Branch isolation and Shift isolation
This commit is contained in:
@@ -24,6 +24,7 @@ class User extends BaseAuthenticatable implements MustVerifyEmail
|
||||
'password',
|
||||
'type',
|
||||
'avatar',
|
||||
'branch_id',
|
||||
'lang',
|
||||
'delete_status',
|
||||
'is_enable_login',
|
||||
@@ -1397,4 +1398,9 @@ class User extends BaseAuthenticatable implements MustVerifyEmail
|
||||
{
|
||||
return $this->getManagerPermissions();
|
||||
}
|
||||
|
||||
public function branch()
|
||||
{
|
||||
return $this->belongsTo(Branch::class, 'branch_id');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user