Fix `Setting.authorized_fetch` not being properly taken into consideration (#26958)

th-downstream
Claire 1 year ago committed by GitHub
parent 4ffa3c2d1d
commit 685d00e64f

@ -2,7 +2,7 @@
module AuthorizedFetchHelper module AuthorizedFetchHelper
def authorized_fetch_mode? 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 end
def authorized_fetch_overridden? def authorized_fetch_overridden?

Loading…
Cancel
Save