π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
fix
AmanRajSinghMouryacfedbe4cc482
diff --git a/mobile/apps/photos/lib/models/collection/collection.dart b/mobile/apps/photos/lib/models/collection/collection.dartindex 18c6050bb1..cc201f3f9a 100644--- a/mobile/apps/photos/lib/models/collection/collection.dart+++ b/mobile/apps/photos/lib/models/collection/collection.dart@@ -167,6 +167,14 @@ class Collection {return getRole(userID) == CollectionParticipantRole.admin;}+ bool canAdd(int userID) {+ final participantRole = getRole(userID);+ final canEditCollection = isOwner(userID) ||+ participantRole == CollectionParticipantRole.collaborator ||+ participantRole == CollectionParticipantRole.admin;+ return canEditCollection && !isDeleted;+ }+bool canAutoAdd(int userID) {final participantRole = getRole(userID);final canEditCollection = isOwner(userID) ||diff --git a/mobile/apps/photos/lib/services/collections_service.dart b/mobile/apps/photos/lib/services/collections_service.dartindex be5599b4b5..8263df643f 100644--- a/mobile/apps/photos/lib/services/collections_service.dart+++ b/mobile/apps/photos/lib/services/collections_service.dart@@ -1828,7 +1828,7 @@ class CollectionsService {final currentUserID = _config.getUserID()!;final shouldCopyViaUncategorized = dstCollection != null &&!dstCollection.isOwner(currentUserID) &&- dstCollection.canAutoAdd(currentUserID);+ dstCollection.canAdd(currentUserID);final int copyDestinationCollectionID;if (shouldCopyViaUncategorized) {