Skip to content

Commit

Permalink
Fix Collection Read Only access for groups
Browse files Browse the repository at this point in the history
I messed up with identation sorry it's my first PR
  • Loading branch information
Misterbabou committed Feb 17, 2023
1 parent a708309 commit edbde1e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/db/models/collection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ 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 {
} else if let Some(cg) = cipher_sync_data.user_collections_groups.get(&self.uuid) {
(cg.read_only, cg.hide_passwords)
} else {
(false, false)
}
}
Expand Down

0 comments on commit edbde1e

Please sign in to comment.