เช็ค profiletype

This commit is contained in:
kittapath 2024-08-28 15:22:47 +07:00
parent 501117fae1
commit 48f7c44b9e
3 changed files with 5435 additions and 5017 deletions

View file

@ -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 = {