Fix POST /api/v1/accounts still being accessible when SSO_ACCOUNT_SIGN_UP is set (#40681)

This commit is contained in:
Claire committed 2026-09-24 16:29:46 +02:00
1 parent f9d4feee60
commit b51518f741
1 file changed
+1 -1
@@ -128,6 +128,6 @@ class Api::V1::AccountsController < Api::BaseController
end
def check_enabled_registrations
forbidden unless allowed_registration?(request.remote_ip, invite)
forbidden if ENV['SSO_ACCOUNT_SIGN_UP'].present? || !allowed_registration?(request.remote_ip, invite)
end
end