recheck เมนู ลูกจ้างชั่วคราว (list to get)

This commit is contained in:
AdisakKanthawilang 2024-08-29 09:49:56 +07:00
parent 271e6964b3
commit 51eaf6b976
19 changed files with 37 additions and 38 deletions

View file

@ -74,7 +74,7 @@ export class ProfileAbilityEmployeeTempController extends Controller {
],
})
public async detailProfileAbility(@Path() profileEmployeeId: string, @Request() req: RequestWithUser) {
await new permission().PermissionList(req, "SYS_REGISTRY_TEMP");
await new permission().PermissionGet(req, "SYS_REGISTRY_TEMP");
const getProfileAbilityId = await this.profileAbilityRepo.findBy({ profileEmployeeId });
if (!getProfileAbilityId) {
throw new HttpError(HttpStatus.NOT_FOUND, "ไม่พบข้อมูล");
@ -124,7 +124,7 @@ export class ProfileAbilityEmployeeTempController extends Controller {
public async getProfileAbilityHistory(@Path() abilityId: string, @Request() req: RequestWithUser) {
const _record = await this.profileAbilityRepo.findOneBy({ id: abilityId });
if (_record) {
await new permission().PermissionDelete(req, "SYS_REGISTRY_TEMP");
await new permission().PermissionGet(req, "SYS_REGISTRY_TEMP");
}
const record = await this.profileAbilityHistoryRepo.findBy({