mirror of
https://github.com/kanidm/kanidm.git
synced 2025-02-23 12:37:00 +01:00
don't need write if we are not writing (#2256)
This commit is contained in:
parent
7dc18e4f9e
commit
208d7c9932
|
@ -280,7 +280,7 @@ impl PersonOpt {
|
|||
}
|
||||
}
|
||||
PersonOpt::Get(aopt) => {
|
||||
let client = aopt.copt.to_client(OpType::Write).await;
|
||||
let client = aopt.copt.to_client(OpType::Read).await;
|
||||
match client
|
||||
.idm_person_account_get(aopt.aopts.account_id.as_str())
|
||||
.await
|
||||
|
|
|
@ -20,7 +20,7 @@ impl RecycleOpt {
|
|||
}
|
||||
}
|
||||
RecycleOpt::Get(nopt) => {
|
||||
let client = nopt.copt.to_client(OpType::Write).await;
|
||||
let client = nopt.copt.to_client(OpType::Read).await;
|
||||
match client.recycle_bin_get(nopt.name.as_str()).await {
|
||||
Ok(Some(e)) => println!("{}", e),
|
||||
Ok(None) => println!("No matching entries"),
|
||||
|
|
Loading…
Reference in a new issue