Skip to main content

require_resource_ownership

Function require_resource_ownership 

Source
pub fn require_resource_ownership(
    model: impl Into<String>,
    resource_id_param: impl Into<String>,
    owner_field: impl Into<String>,
) -> EndpointMiddleware
Expand description

Require the resource identified by a path param to belong to the current user.