fix(role): add role in encounter home

This commit is contained in:
riefive
2025-11-13 15:36:31 +07:00
parent 8bb57de4cc
commit 5af84a8dc2
6 changed files with 175 additions and 34 deletions

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
const standartRoles = ['emp|doc', 'emp|nur', 'emp|reg', 'emp|pha', 'emp|pay', 'emp|mng']
const verificatorRole = 'verificator'
export function getPositionAs(roleAccess: string): string {
if (roleAccess.includes('|')) {
if (standartRoles.includes(roleAccess)) {
return 'medical'
}
if (roleAccess.includes(verificatorRole)) {
return 'verificator'
}
}
return 'none'
}