feat (patient): add guard for reg and sys
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user