fix(role): add role in encounter home
This commit is contained in:
No files matched your search
@@ -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'
|
||||
}
|
||||
Reference in New Issue
Block a user