recheck เมนู ลูกจ้างประจำ กทม และเปลี่ยนจาก list เป็น get

This commit is contained in:
AdisakKanthawilang 2024-08-28 18:10:58 +07:00
parent 2eb79a14b5
commit 057bda967f
21 changed files with 38 additions and 38 deletions

View file

@ -79,7 +79,7 @@ export class ProfileAssessmentsEmployeeController extends Controller {
],
})
public async detailProfileAssessments(@Path() profileEmployeeId: string, @Request() req: RequestWithUser) {
await new permission().PermissionOrgUserList(req, "SYS_REGISTRY_EMP", profileEmployeeId);
await new permission().PermissionOrgUserGet(req, "SYS_REGISTRY_EMP", profileEmployeeId);
const getProfileAssessments = await this.profileAssessmentsRepository.findBy({
profileEmployeeId,
});
@ -135,7 +135,7 @@ export class ProfileAssessmentsEmployeeController extends Controller {
public async getProfileAssessmentsHistory(@Path() assessmentId: string, @Request() req: RequestWithUser) {
const _record = await this.profileAssessmentsRepository.findOneBy({ id: assessmentId });
if (_record) {
await new permission().PermissionOrgUserList(req, "SYS_REGISTRY_EMP", _record.profileId);
await new permission().PermissionOrgUserGet(req, "SYS_REGISTRY_EMP", _record.profileId);
}
const record = await this.profileAssessmentsHistoryRepository.findBy({
profileAssessmentId: assessmentId,