Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][photos] Check for uploading files to public collection

Aman Rajc7d56c66a2b1
diff --git a/mobile/lib/models/collection/collection.dart b/mobile/lib/models/collection/collection.dart
index 40cf30b5db..62e556f000 100644
--- a/mobile/lib/models/collection/collection.dart
+++ b/mobile/lib/models/collection/collection.dart
@@ -148,7 +148,7 @@ class Collection {
if (publicURLs == null || publicURLs!.isEmpty) {
return false;
}
- return publicURLs?.first?.enableDownload ?? false;
+ return publicURLs?.first?.enableCollect ?? false;
}
CollectionParticipantRole getRole(int userID) {
diff --git a/mobile/lib/models/gallery_type.dart b/mobile/lib/models/gallery_type.dart
index 72de2fa8de..38746f08bb 100644
--- a/mobile/lib/models/gallery_type.dart
+++ b/mobile/lib/models/gallery_type.dart
@@ -295,6 +295,9 @@ extension GalleryAppBarExtn on GalleryType {
this == GalleryType.hiddenOwnedCollection) {
return true;
}
+ if (this == GalleryType.sharedPublicCollection && c!.isEnableCollect()) {
+ return true;
+ }
if (this == GalleryType.sharedCollection) {
return c?.getRole(userID) == CollectionParticipantRole.collaborator;
}