fixes access bug

This commit is contained in:
James
2020-11-24 18:33:20 -05:00
parent 35686a7dca
commit 26a01afa1a

View File

@@ -95,11 +95,11 @@ async function accessOperation(args) {
}
config.collections.forEach((collection) => {
executeEntityPolicies(collection, allOperations, 'collection');
executeEntityPolicies(collection, allOperations, 'collections');
});
config.globals.forEach((global) => {
executeEntityPolicies(global, ['read', 'update'], 'global');
executeEntityPolicies(global, ['read', 'update'], 'globals');
});
await Promise.all(promises);