mirror of
https://github.com/mastodon/mastodon.git
synced 2026-09-27 09:07:47 -05:00
Fix POST /api/v1/accounts still being accessible when SSO_ACCOUNT_SIGN_UP is set (#40681)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user