mirror of
https://github.com/nocobase/nocobase
synced 2024-11-16 01:17:43 +00:00
fix: acl test
This commit is contained in:
parent
7b6469fa3d
commit
b7a837d84d
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user