Skip to main content

check_command_access

Function check_command_access 

Source
pub fn check_command_access(
    definition: &DriverCommandDefinition,
    granted: CommandAccessLevel,
) -> Result<(), String>
Expand description

Reject commands that need a higher access level than the caller was granted.