Implement HR Branch isolation and Shift isolation

This commit is contained in:
2026-07-14 11:41:04 +08:00
parent 778bf0f52b
commit 8f078c1f33
427 changed files with 14658 additions and 14552 deletions

View File

@@ -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');
}
}