feat: add GlobalConfigService to support env vars migration (#3288)
This commit is contained in:
@@ -55,7 +55,7 @@ class Api::V1::AccountsController < Api::BaseController
|
||||
end
|
||||
|
||||
def check_signup_enabled
|
||||
raise ActionController::RoutingError, 'Not Found' if ENV.fetch('ENABLE_ACCOUNT_SIGNUP', true) == 'false'
|
||||
raise ActionController::RoutingError, 'Not Found' if GlobalConfig.get_value('ENABLE_ACCOUNT_SIGNUP') == 'false'
|
||||
end
|
||||
|
||||
def pundit_user
|
||||
|
||||
Reference in New Issue
Block a user