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

@ -62,7 +62,7 @@ export class ProfileDevelopmentController extends Controller {
],
})
public async getDevelopment(@Path() profileId: string, @Request() req: RequestWithUser) {
await new permission().PermissionOrgUserGet(req, "SYS_REGISTRY_OFFICER", profileId);
await new permission().PermissionOrgUserList(req, "SYS_REGISTRY_OFFICER", profileId);
const lists = await this.developmentRepository.find({
where: { profileId: profileId },
});
@ -113,7 +113,7 @@ export class ProfileDevelopmentController extends Controller {
if (!profile) {
throw new HttpError(HttpStatus.BAD_REQUEST, "ไม่พบ profile ดังกล่าว");
}
await new permission().PermissionOrgUserCreate(req, "SYS_REGISTRY_OFFICER", profile.id);
await new permission().PermissionOrgUserUpdate(req, "SYS_REGISTRY_OFFICER", profile.id);
const data = new ProfileDevelopment();