diff --git a/packages/core/acl/src/acl-available-strategy.ts b/packages/core/acl/src/acl-available-strategy.ts index f4b45cab4e..2618611d0f 100644 --- a/packages/core/acl/src/acl-available-strategy.ts +++ b/packages/core/acl/src/acl-available-strategy.ts @@ -69,7 +69,7 @@ export class ACLAvailableStrategy { const namespace = this.getNamespace(resourceName); - if (Object.prototype.hasOwnProperty.call(this.actionsAsObject?.[namespace], actionName)) { + if (Object.prototype.hasOwnProperty.call(this.actionsAsObject?.[namespace] || {}, actionName)) { const predicateName = this.actionsAsObject[namespace][actionName]; if (predicateName) { return lodash.cloneDeep(predicate[predicateName]);