Permit.Ecto.Resolver (permit_ecto v0.0.1)
Link to this section Summary
Link to this section Functions
Link to this function
authorize_and_preload_all!(subject, authorization_module, resource_module, action, meta)
@spec authorize_and_preload_all!( Permit.Types.subject(), module(), Permit.Types.resource_module(), Permit.Types.controller_action(), map() ) :: {:authorized, [struct()]} | :unauthorized | {:not_found, term()}
Link to this function
authorize_and_preload_one!(subject, authorization_module, resource_module, action, meta)
@spec authorize_and_preload_one!( Permit.Types.subject(), module(), Permit.Types.resource_module(), Permit.Types.controller_action(), map() ) :: {:authorized, [struct()]} | :unauthorized
Link to this function
authorized?(subject, authorization_module, resource_or_module, action)
@spec authorized?( Permit.Types.subject(), module(), Permit.Types.resource(), Permit.Types.controller_action() ) :: boolean()