diff --git a/src/components/HasAccess.tsx b/src/components/HasAccess.tsx index 5370c9b..a3568f0 100644 --- a/src/components/HasAccess.tsx +++ b/src/components/HasAccess.tsx @@ -46,6 +46,7 @@ const HasAccess = ({ if (permissions && storedUser.permissions && storedUser.permissions.length > 0) { const intersection = storedUser.permissions.filter((permission: string) => permissions.includes(permission)); if (intersection.length > 0) setHasAccess(true) + else setHasAccess(false) } setChecking(false)