Skip to main content

generated_surface_user_has_capability

Function generated_surface_user_has_capability 

Source
pub fn generated_surface_user_has_capability(
    state_root: &Value,
    _app: &AppRuntime,
    user_id: i64,
    tenant_id: i64,
    capability: &str,
) -> bool
Expand description

Validates a state-backed capability for the current user and tenant.

§Parameters

§Returns

Returns true when the condition checked by crate::runtime::dynamic::generated_surface_user_has_capability holds and false otherwise.

§Performance

Performance is proportional to the size of the supplied inputs and any parsed or loaded data consumed by crate::runtime::dynamic::generated_surface_user_has_capability.

§Examples

ⓘ
let _result = pharos_native::runtime::dynamic::generated_surface_user_has_capability(todo!(), todo!(), 1, todo!(), todo!());