This commit is contained in:
Yuri Kuznetsov
2023-12-06 17:36:29 +02:00
parent 49defa44f4
commit c565eb148d
+7 -2
View File
@@ -163,11 +163,16 @@ class AclManager {
return null;
}
if (typeof this.data.table[scope] !== 'object' || !(action in this.data.table[scope])) {
const scopeItem = this.data.table[scope];
if (
typeof scopeItem !== 'object' ||
!(action in scopeItem)
) {
return null;
}
return this.data.table[scope][action];
return scopeItem[action];
}
/**