aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel García <[email protected]>2023-02-21 21:29:13 +0100
committerDaniel García <[email protected]>2023-02-21 21:29:13 +0100
commite7d36de784fc978c951cbd68862912af6a165876 (patch)
tree63e52160d20c50f8779dcd327072a770793d11e6
parent0af1ef387dbb7fa8c0f492c90e66c1e32d55e11e (diff)
parent54cc47b14e329e7c874d40fe4d0109418b987be1 (diff)
downloadvaultwarden-e7d36de784fc978c951cbd68862912af6a165876.tar.gz
vaultwarden-e7d36de784fc978c951cbd68862912af6a165876.zip
Merge branch 'Misterbabou-issue-3249'
-rw-r--r--src/db/models/collection.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/db/models/collection.rs b/src/db/models/collection.rs
index 0b40196d..1ae29493 100644
--- a/src/db/models/collection.rs
+++ b/src/db/models/collection.rs
@@ -64,6 +64,8 @@ impl Collection {
Some(_) => {
if let Some(uc) = cipher_sync_data.user_collections.get(&self.uuid) {
(uc.read_only, uc.hide_passwords)
+ } else if let Some(cg) = cipher_sync_data.user_collections_groups.get(&self.uuid) {
+ (cg.read_only, cg.hide_passwords)
} else {
(false, false)
}