From bbcdca2a8262f9998fac2d4e9fbec3871322872c Mon Sep 17 00:00:00 2001 From: Filip Skokan Date: Sun, 4 Aug 2019 12:50:34 +0200 Subject: [PATCH] fix: properly check if resourceIndicators is enabled --- lib/shared/check_resource_format.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/shared/check_resource_format.js b/lib/shared/check_resource_format.js index c9650f48e..1f701b315 100644 --- a/lib/shared/check_resource_format.js +++ b/lib/shared/check_resource_format.js @@ -4,7 +4,7 @@ const instance = require('../helpers/weak_cache'); const { InvalidTarget } = require('../helpers/errors'); module.exports = function checkResourceFormat({ oidc: { params, provider } }, next) { - if (!instance(provider).configuration('features.resourceIndicators') || params.resource === undefined) { + if (!instance(provider).configuration('features.resourceIndicators.enabled') || params.resource === undefined) { return next(); }