diff options
author | Fire Demon <firedemon@creature.cafe> | 2020-08-17 00:35:06 -0500 |
---|---|---|
committer | Fire Demon <firedemon@creature.cafe> | 2020-08-30 05:45:18 -0500 |
commit | 3693792e7653a5e9a4462a55f5d149a4570d18fb (patch) | |
tree | 10e1e4b58e0742ac705a8485f3787c2ac1525489 /app | |
parent | cf1ef2c265f6d965a36298faffdcf1a783ef7683 (diff) |
[Development] Disable allowlist and authorized fetch modes in development and test environments
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/application_controller.rb | 4 | ||||
-rw-r--r-- | app/helpers/domain_control_helper.rb | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index cfc93b7ce..2b58e0b90 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -49,11 +49,11 @@ class ApplicationController < ActionController::Base end def authorized_fetch_mode? - true + !(Rails.env.development? || Rails.env.test?) end def public_fetch_mode? - false + !authorized_fetch_mode? end def store_current_location diff --git a/app/helpers/domain_control_helper.rb b/app/helpers/domain_control_helper.rb index 4ce205504..765ffa536 100644 --- a/app/helpers/domain_control_helper.rb +++ b/app/helpers/domain_control_helper.rb @@ -20,6 +20,6 @@ module DomainControlHelper end def whitelist_mode? - true + !(Rails.env.development? || Rails.env.test?) end end |