|
|
@ -320,7 +320,7 @@ impl Cipher {
|
|
|
|
// and `hide_passwords` columns. This could ideally be done as part
|
|
|
|
// and `hide_passwords` columns. This could ideally be done as part
|
|
|
|
// of the query, but Diesel doesn't support a max() or bool_or()
|
|
|
|
// of the query, but Diesel doesn't support a max() or bool_or()
|
|
|
|
// function on booleans and this behavior isn't portable anyway.
|
|
|
|
// function on booleans and this behavior isn't portable anyway.
|
|
|
|
if let Some(vec) = query.load::<(bool, bool)>(conn).ok() {
|
|
|
|
if let Ok(vec) = query.load::<(bool, bool)>(conn) {
|
|
|
|
let mut read_only = false;
|
|
|
|
let mut read_only = false;
|
|
|
|
let mut hide_passwords = false;
|
|
|
|
let mut hide_passwords = false;
|
|
|
|
for (ro, hp) in vec.iter() {
|
|
|
|
for (ro, hp) in vec.iter() {
|
|
|
|