From 26a01afa1aba74ab52c409ca0876ebba88884209 Mon Sep 17 00:00:00 2001 From: James Date: Tue, 24 Nov 2020 18:33:20 -0500 Subject: [PATCH] fixes access bug --- src/auth/operations/access.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/auth/operations/access.ts b/src/auth/operations/access.ts index 018b053edb..6a54713cbf 100644 --- a/src/auth/operations/access.ts +++ b/src/auth/operations/access.ts @@ -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);