fix: avoid let-chain to satisfy edition 2021 fmt check
ci / gates (push) Successful in 6s
ci / rust (push) Failing after 7s
ci / frontend (push) Successful in 25s
ci / e2e (push) Skipped
ci / publish (push) Skipped

This commit is contained in:
Omar Sobh
2026-07-19 13:23:52 -07:00
parent 96fdd397f9
commit d4ddf6bfc7
+4 -3
View File
@@ -189,9 +189,10 @@ pub async fn mcp_skills(
};
// Enforce workspace scope: an agent can only read a
// workspace-scoped skill from its own workspace.
if let Some(ws) = ws
&& ws != user.workspace_id.as_uuid()
{
let cross_ws = ws
.map(|w| w != user.workspace_id.as_uuid())
.unwrap_or(false);
if cross_ws {
return err(req.id, -32001, "cross-workspace read denied");
}
let skill = match cm_db::repo::skills_catalog::get_by_name(