From 392c07f2bf01743fdbf92abb555a4c558c7f4a31 Mon Sep 17 00:00:00 2001 From: Claire Date: Mon, 18 Sep 2023 09:37:29 +0200 Subject: [PATCH] Fix `Setting.authorized_fetch` not being properly taken into consideration (#26958) --- app/helpers/authorized_fetch_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/authorized_fetch_helper.rb b/app/helpers/authorized_fetch_helper.rb index ce87526e6..cc1b8d02c 100644 --- a/app/helpers/authorized_fetch_helper.rb +++ b/app/helpers/authorized_fetch_helper.rb @@ -2,7 +2,7 @@ module AuthorizedFetchHelper def authorized_fetch_mode? - ENV.fetch('AUTHORIZED_FETCH') { Setting.authorized_fetch } == 'true' || Rails.configuration.x.limited_federation_mode + ENV.fetch('AUTHORIZED_FETCH') { Setting.authorized_fetch && 'true' } == 'true' || Rails.configuration.x.limited_federation_mode end def authorized_fetch_overridden?