Showing
1 changed file
with
1 additions
and
4 deletions
@@ -78,11 +78,8 @@ module.exports = (req, res, next) => { | @@ -78,11 +78,8 @@ module.exports = (req, res, next) => { | ||
78 | exclusion = result.exclusion; | 78 | exclusion = result.exclusion; |
79 | } | 79 | } |
80 | 80 | ||
81 | - if (!excluded && typeof result === 'function') { | ||
82 | - allPass = false; | ||
83 | - } | ||
84 | - | ||
85 | if (typeof result === 'function') { | 81 | if (typeof result === 'function') { |
82 | + allPass = false; | ||
86 | policy = result; | 83 | policy = result; |
87 | } | 84 | } |
88 | }); | 85 | }); |
-
Please register or login to post a comment