fix profile_devlopment

This commit is contained in:
AdisakKanthawilang 2024-08-28 17:05:27 +07:00
parent ff8917195f
commit f1c9320bac
3 changed files with 5 additions and 5 deletions

View file

@ -58,7 +58,7 @@ export class ProfileDevelopmentEmployeeController extends Controller {
public async developmentHistory(@Path() developmentId: string, @Request() req: RequestWithUser) {
const _record = await this.developmentRepository.findOneBy({ id: developmentId });
if (_record) {
await new permission().PermissionOrgUserDelete(
await new permission().PermissionOrgUserList(
req,
"SYS_REGISTRY_EMP",
_record.profileEmployeeId,
@ -84,7 +84,7 @@ export class ProfileDevelopmentEmployeeController extends Controller {
if (!profile) {
throw new HttpError(HttpStatus.BAD_REQUEST, "ไม่พบ profile ดังกล่าว");
}
await new permission().PermissionOrgUserCreate(req, "SYS_REGISTRY_EMP", profile.id);
await new permission().PermissionOrgUserUpdate(req, "SYS_REGISTRY_EMP", profile.id);
const data = new ProfileDevelopment();