Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Fix owner comment deletion for public link only albums

Anand Baburajan516111aa92c1
diff --git a/web/packages/gallery/components/viewer/CommentsSidebar.tsx b/web/packages/gallery/components/viewer/CommentsSidebar.tsx
index e96ed71d15..87bf24500d 100644
--- a/web/packages/gallery/components/viewer/CommentsSidebar.tsx
+++ b/web/packages/gallery/components/viewer/CommentsSidebar.tsx
@@ -757,9 +757,9 @@ export const CommentsSidebar: React.FC<CommentsSidebarProps> = ({
return false;
}
- // User is owner (sharedOutgoing) or admin (sharedIncomingAdmin)
+ // User is owner (not sharedIncoming) or admin (sharedIncomingAdmin)
return (
- summary.attributes.has("sharedOutgoing") ||
+ !summary.attributes.has("sharedIncoming") ||
summary.attributes.has("sharedIncomingAdmin")
);
},