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

@ -69,7 +69,7 @@ export class ProfileDevelopmentEmployeeTempController extends Controller {
@Request() req: RequestWithUser,
@Body() body: CreateProfileEmployeeDevelopment,
) {
await new permission().PermissionCreate(req, "SYS_REGISTRY_TEMP");
await new permission().PermissionUpdate(req, "SYS_REGISTRY_TEMP");
if (!body.profileEmployeeId) {
throw new HttpError(HttpStatus.BAD_REQUEST, "กรุณากรอก profileId");
}