From 990e32a1d94b94664afcea088a8c0b48f4adf439 Mon Sep 17 00:00:00 2001 From: Moshe Immermam Date: Thu, 28 Nov 2024 09:02:45 +0200 Subject: [PATCH] chore: add user role --- src/context/UserAccessContext/UserAccessContext.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/context/UserAccessContext/UserAccessContext.tsx b/src/context/UserAccessContext/UserAccessContext.tsx index 00ae95594..5919feecd 100644 --- a/src/context/UserAccessContext/UserAccessContext.tsx +++ b/src/context/UserAccessContext/UserAccessContext.tsx @@ -38,7 +38,7 @@ export const UserAccessStateContextProvider = ({ const isAdmin = roles.includes("admin"); - const isViewer = roles.includes("viewer"); + const isViewer = roles.includes("viewer") || roles.includes("user"); return (