Commit 746351da authored by nanahira's avatar nanahira

disallow running update seq

parent 50c04744
Pipeline #36645 passed with stages
in 3 minutes and 46 seconds
...@@ -45,7 +45,7 @@ export class ParticipantService extends CrudService(Participant, { ...@@ -45,7 +45,7 @@ export class ParticipantService extends CrudService(Participant, {
dto: Partial<Participant>, dto: Partial<Participant>,
user: MycardUser, user: MycardUser,
) { ) {
await this.checkPermissionOfParticipant(id, user, true); await this.checkPermissionOfParticipant(id, user, dto.seq === undefined);
return this.update(id, dto); return this.update(id, dto);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment