From c1034ec621857db93eea4ab2e9c0869fa9171874 Mon Sep 17 00:00:00 2001 From: Zhang Ziqing Date: Sat, 30 Mar 2024 23:18:17 +0800 Subject: [PATCH] Remove unnecessary check for account request --- .../java/teammates/ui/webapi/CreateAccountRequestAction.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/main/java/teammates/ui/webapi/CreateAccountRequestAction.java b/src/main/java/teammates/ui/webapi/CreateAccountRequestAction.java index a618d14bde3..736abee49ff 100644 --- a/src/main/java/teammates/ui/webapi/CreateAccountRequestAction.java +++ b/src/main/java/teammates/ui/webapi/CreateAccountRequestAction.java @@ -51,10 +51,6 @@ public JsonResult execute() taskQueuer.scheduleAccountRequestForSearchIndexing(instructorEmail, instructorInstitution); - if (accountRequest.getRegisteredAt() != null) { - throw new InvalidOperationException("Cannot create account request as instructor has already registered."); - } - assert accountRequest != null; EmailWrapper adminAlertEmail = sqlEmailGenerator.generateNewAccountRequestAdminAlertEmail(accountRequest); emailSender.sendEmail(adminAlertEmail);