aboutsummaryrefslogtreecommitdiffstats
path: root/apps/web/app/dashboard
diff options
context:
space:
mode:
Diffstat (limited to 'apps/web/app/dashboard')
-rw-r--r--apps/web/app/dashboard/lists/[listId]/page.tsx5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/web/app/dashboard/lists/[listId]/page.tsx b/apps/web/app/dashboard/lists/[listId]/page.tsx
index 3f9c3416..2b2cc9bb 100644
--- a/apps/web/app/dashboard/lists/[listId]/page.tsx
+++ b/apps/web/app/dashboard/lists/[listId]/page.tsx
@@ -50,6 +50,9 @@ export default async function ListPage(props: {
? searchParams.includeArchived === "true"
: userSettings.archiveDisplayBehaviour === "show";
+ // Only show editor card if user is owner or editor (not viewer)
+ const canEdit = list.userRole === "owner" || list.userRole === "editor";
+
return (
<BookmarkListContextProvider list={list}>
<Bookmarks
@@ -58,7 +61,7 @@ export default async function ListPage(props: {
archived: !includeArchived ? false : undefined,
}}
showDivider={true}
- showEditorCard={list.type === "manual"}
+ showEditorCard={list.type === "manual" && canEdit}
header={<ListHeader initialData={list} />}
/>
</BookmarkListContextProvider>