Skip to main content

capability_get

Function capability_get 

Source
pub async fn capability_get(
    profile_id: ProfileId,
    scope: CapabilityScope,
    cap: State<'_, CapabilityHandle>,
) -> Result<CapabilityMap, AppError>
Expand description

Return the cached capability map for profile_id, optionally filtered by scope.

The returned CapabilityMap keys are "<bucket>/<op>" where <bucket> is empty for profile-level operations.