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

@ -78,7 +78,8 @@ export class ProfileAssessmentsEmployeeTempController extends Controller {
},
],
})
public async detailProfileAssessments(@Path() profileEmployeeId: string) {
public async detailProfileAssessments(@Path() profileEmployeeId: string, @Request() req: RequestWithUser) {
await new permission().PermissionList(req, "SYS_REGISTRY_TEMP");
const getProfileAssessments = await this.profileAssessmentsRepository.findBy({
profileEmployeeId,
});
@ -131,7 +132,8 @@ export class ProfileAssessmentsEmployeeTempController extends Controller {
},
],
})
public async getProfileAssessmentsHistory(@Path() assessmentId: string) {
public async getProfileAssessmentsHistory(@Path() assessmentId: string, @Request() req: RequestWithUser) {
await new permission().PermissionList(req, "SYS_REGISTRY_TEMP");
const record = await this.profileAssessmentsHistoryRepository.findBy({
profileAssessmentId: assessmentId,
});