Skip to content

Commit 3afd501

Browse files
committed
fix: check if the appeal phase is open while updating appeals
1 parent 4eadcae commit 3afd501

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/api/appeal/appeal.service.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,11 @@ export class AppealService {
267267
);
268268
}
269269

270+
// Check if the appeal phase is open while updating appeals
271+
if (!isPrivileged && challengeId) {
272+
await this.challengeApiService.validateAppealSubmission(challengeId);
273+
}
274+
270275
if (!isPrivileged) {
271276
await this.ensureChallengeAllowsAppealChange(challengeId, {
272277
logContext: 'updateAppeal',

0 commit comments

Comments
 (0)