Skip to content

Commit

Permalink
fix: properly check if resourceIndicators is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
panva committed Aug 4, 2019
1 parent 603e979 commit bbcdca2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/shared/check_resource_format.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit bbcdca2

Please sign in to comment.