pub async fn check_policy(
user: &PolicyUser,
action: &str,
resource: Option<&PolicyResource>,
) -> boolExpand description
Check whether the user is allowed to perform action.
Returns true if allowed, false if denied.
pub async fn check_policy(
user: &PolicyUser,
action: &str,
resource: Option<&PolicyResource>,
) -> boolCheck whether the user is allowed to perform action.
Returns true if allowed, false if denied.