mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-09-01 19:49:54 +02:00
web: hide attachments access if user is logged out
This commit is contained in:
@@ -52,7 +52,7 @@ export function UserProfile() {
|
||||
};
|
||||
}, [user]);
|
||||
|
||||
if (!user)
|
||||
if (!user || !user.id)
|
||||
return (
|
||||
<Flex
|
||||
sx={{
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user