เช็ค profiletype
This commit is contained in:
parent
501117fae1
commit
48f7c44b9e
3 changed files with 5435 additions and 5017 deletions
|
|
@ -500,16 +500,14 @@ export class KpiUserDevelopmentController extends Controller {
|
|||
if (!getKpiUserDevelopment) {
|
||||
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูลพัฒนาตนเองนี้");
|
||||
}
|
||||
if(type.trim().toLocaleUpperCase() == "OFFCIER"){
|
||||
if(type.trim().toLocaleUpperCase() == "OFFICER"){
|
||||
await new permission().PermissionOrgUserGet(request, "SYS_REGISTRY_OFFICER", getKpiUserDevelopment.kpiUserEvaluation.profileId);
|
||||
}
|
||||
if(type.trim().toLocaleUpperCase() == "EMPLOYEE"){
|
||||
}else if(type.trim().toLocaleUpperCase() == "EMPLOYEE"){
|
||||
await new permission().PermissionOrgUserGet(request, "SYS_REGISTRY_EMP", getKpiUserDevelopment.kpiUserEvaluation.profileId);
|
||||
}
|
||||
if(type.trim().toLocaleUpperCase() == "TEMP"){
|
||||
}else if(type.trim().toLocaleUpperCase() == "TEMP"){
|
||||
await new permission().PermissionOrgUserGet(request, "SYS_REGISTRY_TEMP", getKpiUserDevelopment.kpiUserEvaluation.profileId);
|
||||
}else{
|
||||
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่สามารถเข้าถึงข้อมูลนี้ได้");
|
||||
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่สามารถเข้าถึงข้อมูลนี้ได้ccc");
|
||||
}
|
||||
|
||||
const mapKpiUserDevelopment = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue