# Authorization.is_authorizedFunction.

is_authorized(ability::Symbol, params::Dict{Symbol,Any}) :: Bool

Checks if the user authenticated on the current session (its role) is authorized for ability per the corresponding access list.

source

# Authorization.with_authorizationFunction.

with_authorization(f::Function, ability::Symbol, fallback::Function, params::Dict{Symbol,Any})

Invokes f if the user authenticatedon the current session is authorized for ability - otherwise fallback is invoked.

source

# Authorization.role_has_abilityFunction.

role_has_ability(role::Symbol, ability::Symbol, params::Dict{Symbol,Any}) :: Bool

Checks if role is authorized for ability.

source

# Authorization.scopes_of_role_abilityFunction.

scopes_of_role_ability(role::Symbol, ability::Symbol, params::Dict{Symbol,Any}) :: Vector{Symbol}

Returns a vector of SQL scopes defined by the role and ability settings.

source