diff --git a/src/main/java/com/cloudbees/plugins/credentials/CredentialsSelectHelper.java b/src/main/java/com/cloudbees/plugins/credentials/CredentialsSelectHelper.java index d5befb70..586dd0d5 100644 --- a/src/main/java/com/cloudbees/plugins/credentials/CredentialsSelectHelper.java +++ b/src/main/java/com/cloudbees/plugins/credentials/CredentialsSelectHelper.java @@ -597,12 +597,6 @@ public WrappedCredentialsStore(@NonNull ContextResolver resolver, @NonNull Crede @RequirePOST @Restricted(NoExternalUse.class) public JSONObject doAddCredentials(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException { - if (!store.isDomainsModifiable()) { - hudson.util.HttpResponses.status(400).generateResponse(req, rsp, null); - return new JSONObject() - .element("message", "Domain is read-only") - .element("notificationType", "ERROR"); - } store.checkPermission(CredentialsStoreAction.CREATE); JSONObject data = req.getSubmittedForm(); String domainName = data.getString("domain");