Skip to main content

caller_from_role

Function caller_from_role 

Source
pub fn caller_from_role(
    role: &str,
    organization_id: Option<Uuid>,
    user_id: Uuid,
) -> AcpCaller
Expand description

Map a UserRoleString + organization_id + user_id triple to an AcpCaller. Same convention as acp_handlers::caller_from_user — duplicated here to keep the middleware free of handler imports.