role เมนู ลูกจ้างชั่วคราว

This commit is contained in:
AdisakKanthawilang 2024-08-26 15:57:09 +07:00
parent 6f053d2c70
commit 877a70ef3d
22 changed files with 109 additions and 63 deletions

View file

@ -91,7 +91,8 @@ export class ProfileEducationsEmployeeTempController extends Controller {
},
],
})
public async detailProfileEducation(@Path() profileEmployeeId: string) {
public async detailProfileEducation(@Path() profileEmployeeId: string, @Request() req: RequestWithUser) {
await new permission().PermissionList(req, "SYS_REGISTRY_TEMP");
const getProfileEducation = await this.profileEducationRepo.find({
where: { profileEmployeeId: profileEmployeeId },
});
@ -168,7 +169,8 @@ export class ProfileEducationsEmployeeTempController extends Controller {
},
],
})
public async getProfileEducationHistory(@Path() educationId: string) {
public async getProfileEducationHistory(@Path() educationId: string, @Request() req: RequestWithUser) {
await new permission().PermissionList(req, "SYS_REGISTRY_TEMP");
const record = await this.profileEducationHistoryRepo.findBy({
profileEducationId: educationId,
});