Skip to content

Commit 59b6584

Browse files
authored
Merge pull request #180 from topcoder-platform/pm-2660
fix(PM-2660): check if the appeal phase is open while updating appeals
2 parents 4eadcae + 4d847d9 commit 59b6584

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.circleci/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ workflows:
7474
branches:
7575
only:
7676
- develop
77+
- pm-2660
7778

7879

7980
- 'build-prod':

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)