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

@ -50,7 +50,7 @@ export class ProfileLeaveEmployeeController extends Controller {
@Get("{profileId}")
public async getLeave(@Path() profileId: string, @Request() req: RequestWithUser) {
await new permission().PermissionOrgUserList(req, "SYS_REGISTRY_EMP", profileId);
await new permission().PermissionOrgUserGet(req, "SYS_REGISTRY_EMP", profileId);
const record = await this.leaveRepo.find({
relations: { leaveType: true },
where: { profileEmployeeId: profileId },
@ -72,7 +72,7 @@ export class ProfileLeaveEmployeeController extends Controller {
public async leaveHistory(@Path() leaveId: string, @Request() req: RequestWithUser) {
const _record = await this.leaveRepo.findOneBy({ id: leaveId });
if (_record) {
await new permission().PermissionOrgUserDelete(req, "SYS_REGISTRY_EMP", _record.profileEmployeeId);
await new permission().PermissionOrgUserGet(req, "SYS_REGISTRY_EMP", _record.profileEmployeeId);
}
const record = await this.leaveHistoryRepo.find({
relations: { leaveType: true },