pub fn require_resource_ownership(
model: impl Into<String>,
resource_id_param: impl Into<String>,
owner_field: impl Into<String>,
) -> EndpointMiddlewareExpand description
Require the resource identified by a path param to belong to the current user.