fix profile_development

This commit is contained in:
AdisakKanthawilang 2024-08-28 18:18:23 +07:00
parent 057bda967f
commit 7430c3c86f
2 changed files with 4 additions and 4 deletions

View file

@ -62,7 +62,7 @@ export class ProfileDevelopmentController extends Controller {
],
})
public async getDevelopment(@Path() profileId: string, @Request() req: RequestWithUser) {
await new permission().PermissionOrgUserList(req, "SYS_REGISTRY_OFFICER", profileId);
await new permission().PermissionOrgUserGet(req, "SYS_REGISTRY_OFFICER", profileId);
const lists = await this.developmentRepository.find({
where: { profileId: profileId },
});
@ -91,7 +91,7 @@ export class ProfileDevelopmentController extends Controller {
public async developmentHistory(@Path() developmentId: string, @Request() req: RequestWithUser) {
const _record = await this.developmentRepository.findOneBy({ id: developmentId });
if (_record) {
await new permission().PermissionOrgUserList(req, "SYS_REGISTRY_OFFICER", _record.profileId);
await new permission().PermissionOrgUserGet(req, "SYS_REGISTRY_OFFICER", _record.profileId);
}
const record = await this.developmentHistoryRepository.find({
where: { profileDevelopmentId: developmentId },