diff --git a/src/interaction/policies/policies.js b/src/interaction/policies/policies.js index 244ed2ce359a439fa240c96c406373880e606b43..85d299ee61bcb64f8b1f265bb6b2b54058333287 100644 --- a/src/interaction/policies/policies.js +++ b/src/interaction/policies/policies.js @@ -128,7 +128,7 @@ globalThis.policy = function(category) { for (let i = 0; i < selectedPolicy.length; i++) { const p = selectedPolicy[i]; const enable = p.enable || 1; - if (p.hasOwnProperty("hide") && p.hide.ifDeactivated === 1) { + if ((p.hasOwnProperty("hide") && p.hide.ifDeactivated === 1) || (p.hasOwnProperty("requirements") && p.requirements() === false)) { // TODO: may no longer need ifDeactivated and similar continue; } testArray(p);