Merge commit 'b51518f74173bb6fd9ce1c1ad73a8e67a66a7753' into glitch-soc/merge-4.6
This commit is contained in:
commit
c8376d9345
19 files changed
+78
-21
No files matched your search
@@ -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
|
||||
@@ -69,6 +69,7 @@ class Api::V1::Admin::AccountsController < Api::BaseController
|
||||
def destroy
|
||||
authorize @account, :destroy?
|
||||
Admin::AccountDeletionWorker.perform_async(@account.id)
|
||||
log_action :destroy, @account
|
||||
render_empty
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user