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 7f69eebeb12141240df8c29ef4900cfb56af46f0
parent 1ba8275dcb53bf8e6f41ad2fa2e0a09f3674ff74
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) }