API Reference permit_ecto v0.1.0
modules
Modules
Integrates Permit
with Ecto, providing means to convert permissions to Ecto queries,
automatically constructing Ecto.Query
scopes to preload records that meet authorization criteria.
Defines the application's permission set. Replaces Permit.Permissions
when
Permit.Ecto
is used, but its syntax is identical.
Joins a DNF of conditions represented by a Permit.Permissions.DisjunctiveNormalForm
into an Ecto dynamic query.
Represents the product of parsing a condition by a function implementing
the Permit.Permissions.can/1
callback.
Implementation of Permit.ResolverBase
behaviour, resolving and checks authorization of records or lists of records based on automatic Ecto query construction, taking parameters as input and :base_query
and :finalize_query
functions as means to transform the query based on e.g. current controller context.
Defines Ecto-specific types for usage with Permit.
Provides new types for usage with Ecto queries, as well as replacements for
types initially defined in Permit.Types.ConditionTypes
.
Raised when the permissions module (implementing Permit.Permissions
) does not contain sufficient
information to compute authorization for a given action.
Implemented to define a dynamic query builder function for an operator, that is
a module that implements Permit.Operators.GenOperator
.