diff options
author | Misterbabou <[email protected]> | 2023-02-17 13:34:57 +0100 |
---|---|---|
committer | Daniel GarcĂa <[email protected]> | 2023-02-21 21:30:15 +0100 |
commit | 8fcbc58ee216d4bc3b3870fcf071b668bb431cef (patch) | |
tree | f632cae5cd38b01fc67b204a1f51b47aad500b51 | |
parent | 2dcbb2be59340a0cdf2ab964d6edcfc888aa2f09 (diff) | |
download | vaultwarden-8fcbc58ee216d4bc3b3870fcf071b668bb431cef.tar.gz vaultwarden-8fcbc58ee216d4bc3b3870fcf071b668bb431cef.zip |
Fix Collection Read Only access for groups
I messed up with identation sorry it's my first PR
Fix Collection Read Only access for groups
Fix Collection Read Only access for groups
With indentation modification
-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) } |