fix profile_devlopment
This commit is contained in:
parent
ff8917195f
commit
f1c9320bac
3 changed files with 5 additions and 5 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue