Skip to main content

check_policy

Function check_policy 

Source
pub async fn check_policy(
    user: &PolicyUser,
    action: &str,
    resource: Option<&PolicyResource>,
) -> bool
Expand description

Check whether the user is allowed to perform action.

Returns true if allowed, false if denied.