Permit.Resolver (permit v0.0.1)
This module is to be considered a private API of the authorization framework. It should not be directly used by application code, but rather by wrappers providing integration with e.g. Plug or LiveView.
Link to this section Summary
Link to this section Functions
Link to this function
authorize_with_preloading!(subject, authorization_module, resource_module, live_or_controller_action, action_crud_mapping, params, loader_fn)
@spec authorize_with_preloading!( Permit.Types.subject(), module(), Permit.Types.resource_module(), Permit.Types.controller_action(), keyword(Permit.Types.crud()), map(), function() ) :: {:authorized, Ecto.Schema.t()} | :unauthorized
Link to this function
authorized_without_preloading?(subject, authorization_module, resource_module, live_or_controller_action, action_crud_mapping)
@spec authorized_without_preloading?( Permit.Types.subject(), module(), Permit.Types.resource_module(), Permit.Types.controller_action(), keyword(Permit.Types.crud()) ) :: boolean()