about summary refs log tree commit diff
path: root/app/controllers
diff options
context:
space:
mode:
authorFire Demon <firedemon@creature.cafe>2020-08-17 00:35:06 -0500
committerFire Demon <firedemon@creature.cafe>2020-08-30 05:45:18 -0500
commit3693792e7653a5e9a4462a55f5d149a4570d18fb (patch)
tree10e1e4b58e0742ac705a8485f3787c2ac1525489 /app/controllers
parentcf1ef2c265f6d965a36298faffdcf1a783ef7683 (diff)
[Development] Disable allowlist and authorized fetch modes in development and test environments
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/application_controller.rb4
1 files changed, 2 insertions, 2 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