Commit aeae1e7f authored by nanahira's avatar nanahira

fix

parent f0d0a73e
Pipeline #37788 passed with stages
in 4 minutes and 57 seconds
...@@ -99,7 +99,9 @@ export class TournamentService extends CrudService(Tournament, { ...@@ -99,7 +99,9 @@ export class TournamentService extends CrudService(Tournament, {
dto: Partial<Tournament>, dto: Partial<Tournament>,
user: MycardUser, user: MycardUser,
) { ) {
const tournament = await this.checkPermissionOfTournament(id, user); const tournament = await this.checkPermissionOfTournament(id, user, [
'status',
]);
if (tournament.status !== TournamentStatus.Ready) { if (tournament.status !== TournamentStatus.Ready) {
for (const field of this.readyEditableFields) { for (const field of this.readyEditableFields) {
if (dto[field] !== undefined) { if (dto[field] !== undefined) {
......
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