feat (patient): add guard for reg and sys

This commit is contained in:
dpurbosakti
2025-12-08 16:02:40 +07:00
parent 2cc7af845d
commit 9b4b6949df
2 changed files with 6 additions and 13 deletions
+4
View File
@@ -107,3 +107,7 @@ func (a AuthInfo) HasEmployeePosition() bool {
func (a AuthInfo) IsReg() bool {
return a.Employee_Position_Code != nil && *a.Employee_Position_Code == string(ero.EPCReg)
}
func (a AuthInfo) IsSys() bool {
return a.User_ContractPosition_Code == string(ero.CSCSys)
}