web: hide attachments access if user is logged out

This commit is contained in:
Abdullah Atta
2023-12-12 10:03:55 +05:00
committed by Abdullah Atta
parent 4cb418ff75
commit 81fe67253a
2 changed files with 2 additions and 2 deletions

View File

@@ -52,7 +52,7 @@ export function UserProfile() {
};
}, [user]);
if (!user)
if (!user || !user.id)
return (
<Flex
sx={{

View File

@@ -61,7 +61,7 @@ export const ProfileSettings: SettingsGroup[] = [
key: "manage-attachments",
title: "Attachments",
description: "Manage all your attachments in one place.",
// isHidden: () => !useUserStore.getState().isLoggedIn,
isHidden: () => !useUserStore.getState().isLoggedIn,
components: [
{
type: "button",