fmt: cargo fmt applies preferred form
ci / gates (push) Successful in 4s
ci / rust (push) Failing after 9s
ci / frontend (push) Successful in 28s
ci / e2e (push) Skipped
ci / publish (push) Skipped

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