From 7b89b046677a247aa540e9ae26150a1c055474c5 Mon Sep 17 00:00:00 2001 From: Chaim Lev-Ari Date: Thu, 15 Feb 2024 14:05:52 +0200 Subject: [PATCH] fix(auth): export hasAuthorizations [EE-6595] (#11199) --- app/react/hooks/useUser.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/react/hooks/useUser.tsx b/app/react/hooks/useUser.tsx index 30d4257e5..99e552b8c 100644 --- a/app/react/hooks/useUser.tsx +++ b/app/react/hooks/useUser.tsx @@ -139,7 +139,7 @@ export function useIsEnvironmentAdmin({ /** * will return true if the user has the authorizations. assumes the user is authenticated and not an admin */ -function hasAuthorizations( +export function hasAuthorizations( user: User, authorizations: string | string[], environmentId?: EnvironmentId