Skip to main content

required_scope_for_action

Function required_scope_for_action 

Source
pub fn required_scope_for_action(action: &str) -> Option<&'static str>
Expand description

Returns the scope required to invoke action.

Unknown actions return DENY_SCOPE so they fail closed.