vw_small

Hardened fork of Vaultwarden (https://github.com/dani-garcia/vaultwarden) with fewer features.
git clone https://git.philomathiclife.com/repos/vw_small
Log | Files | Refs | README

commit 8fcbc58ee216d4bc3b3870fcf071b668bb431cef
parent 2dcbb2be59340a0cdf2ab964d6edcfc888aa2f09
Author: Misterbabou <58564168+Misterbabou@users.noreply.github.com>
Date:   Fri, 17 Feb 2023 13:34:57 +0100

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

Diffstat:
Msrc/db/models/collection.rs | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git 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) }