From 95750c2339c0799f93885a00b883deceb4107989 Mon Sep 17 00:00:00 2001 From: Chaim Lev-Ari Date: Thu, 15 Feb 2024 14:05:45 +0200 Subject: [PATCH] fix(auth): export hasAuthorizations [EE-6595] (#11198) --- 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