From b99ec060cacf7a05c20ba0a05dd6ef6ab60df304 Mon Sep 17 00:00:00 2001 From: James Date: Sun, 24 Apr 2022 19:35:58 -0400 Subject: [PATCH] fix: improperly typed access control --- src/config/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config/types.ts b/src/config/types.ts index 94be909c39c..88c6a0c5c0b 100644 --- a/src/config/types.ts +++ b/src/config/types.ts @@ -78,7 +78,7 @@ export type AccessResult = boolean | Where; /** * Access function */ -export type Access = (args?: any) => AccessResult; +export type Access = (args?: any) => AccessResult | Promise; export type AdminView = React.ComponentType<{ user: User, canAccessAdmin: boolean }>