Skip to content

Commit

Permalink
Merge branch 'prod' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
DwayneJengSage committed Jul 17, 2023
2 parents d7e3f89 + e0cf198 commit 17a9258
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,12 @@ public DateTime getStudyStartTime(Account account) {
public IdentifierHolder createParticipant(App app, StudyParticipant participant, boolean shouldSendVerification) {
checkNotNull(app);
checkNotNull(participant);

// https://sagebionetworks.jira.com/browse/DHP-979
// Temporarily disable creating participants for mobile-toolbox.
if (app.getIdentifier().equals("mobile-toolbox")) {
throw new LimitExceededException("You are creating accounts too quickly. Please wait a while and try again later.");
}

if (app.getAccountLimit() > 0) {
throwExceptionIfLimitMetOrExceeded(app);
Expand Down

0 comments on commit 17a9258

Please sign in to comment.