diff options
author | Daniel García <[email protected]> | 2023-02-21 21:29:13 +0100 |
---|---|---|
committer | Daniel García <[email protected]> | 2023-02-21 21:29:13 +0100 |
commit | e7d36de784fc978c951cbd68862912af6a165876 (patch) | |
tree | 63e52160d20c50f8779dcd327072a770793d11e6 | |
parent | 0af1ef387dbb7fa8c0f492c90e66c1e32d55e11e (diff) | |
parent | 54cc47b14e329e7c874d40fe4d0109418b987be1 (diff) | |
download | vaultwarden-e7d36de784fc978c951cbd68862912af6a165876.tar.gz vaultwarden-e7d36de784fc978c951cbd68862912af6a165876.zip |
Merge branch 'Misterbabou-issue-3249'
-rw-r--r-- | src/db/models/collection.rs | 2 |
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) } |