pub async fn require_codename(
pool: &Pool,
actor: &ToolActor,
codename: &str,
) -> Result<(), McpError>Expand description
Require a permission codename (cms_page.view, …) — the same
role-union check the admin’s codename gates run, superuser bypassing.
Public for host tools, which need their own codenames checked
against the same role union — see require_actor.