aboutsummaryrefslogtreecommitdiffstats
path: root/apps/mobile
diff options
context:
space:
mode:
authorMohamed Bassem <me@mbassem.com>2025-11-23 11:21:22 +0000
committerGitHub <noreply@github.com>2025-11-23 11:21:22 +0000
commite4db9bf2725f1714f273332f0a444ec940aae1a8 (patch)
treec3960be69916673c06f78bf9d14fa5866316eea1 /apps/mobile
parent45081dcb472f6aa197d6ebdc129485f77fe3ee88 (diff)
downloadkarakeep-e4db9bf2725f1714f273332f0a444ec940aae1a8.tar.zst
fix: Hide shared lists where user is a viewer in Manage Lists dialog (#2164)
Users with viewer role cannot add/remove bookmarks from lists, so these lists should not appear in the Manage Lists dialog across all platforms (web, mobile, and extension). Changes: - Web: Updated BookmarkListSelector to filter out viewer lists - Mobile: Updated manage_lists.tsx to filter out viewer lists - Extension: Updated ListsSelector to filter out viewer lists Co-authored-by: Claude <noreply@anthropic.com>
Diffstat (limited to 'apps/mobile')
-rw-r--r--apps/mobile/app/dashboard/bookmarks/[slug]/manage_lists.tsx6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/mobile/app/dashboard/bookmarks/[slug]/manage_lists.tsx b/apps/mobile/app/dashboard/bookmarks/[slug]/manage_lists.tsx
index 7250d06b..c502c07f 100644
--- a/apps/mobile/app/dashboard/bookmarks/[slug]/manage_lists.tsx
+++ b/apps/mobile/app/dashboard/bookmarks/[slug]/manage_lists.tsx
@@ -68,6 +68,10 @@ const ListPickerPage = () => {
};
const { allPaths } = data ?? {};
+ // Filter out lists where user is a viewer (can't add/remove bookmarks)
+ const filteredPaths = allPaths?.filter(
+ (path) => path[path.length - 1].userRole !== "viewer",
+ );
return (
<CustomSafeAreaView>
<FlatList
@@ -97,7 +101,7 @@ const ListPickerPage = () => {
</Pressable>
</View>
)}
- data={allPaths}
+ data={filteredPaths}
/>
</CustomSafeAreaView>
);