From 20d8886bfadf8c014d3a82be410e7a3a92088bbf Mon Sep 17 00:00:00 2001 From: Misterbabou <58564168+Misterbabou@users.noreply.github.com> Date: Fri, 17 Feb 2023 13:34:57 +0100 Subject: [PATCH] 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 --- src/db/models/collection.rs | 2 ++ 1 file changed, 2 insertions(+) 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) }