We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85bade2 commit 4bb8700Copy full SHA for 4bb8700
1 file changed
crates/openshell-server/src/auth/ownership.rs
@@ -299,10 +299,8 @@ pub async fn resolve_scoped_name(
299
.await
300
.map_err(|e| Status::internal(format!("suffix search failed: {e}")))?;
301
302
- if is_admin {
303
- if let Some(record) = candidates.into_iter().next() {
304
- return Ok(Some(record));
305
- }
+ if is_admin && let Some(record) = candidates.into_iter().next() {
+ return Ok(Some(record));
306
}
307
308
Ok(None)
0 commit comments