View Source Permit.Types.ConditionTypes (permit v0.2.1)

Contains types of conditions that can be defined in the application's permission definition module (Permit.Permissions or e.g. for Ecto Permit.Ecto.Permissions).

Extensions like Permit.Ecto will typically provide their own replacements for these types.

Summary

Types

@type boolean_condition() :: boolean()
Link to this type

condition_or_conditions()

View Source
@type condition_or_conditions() :: condition() | [condition()]
@type fn1_condition() :: (Permit.Types.object() -> boolean())
@type fn2_condition() :: (Permit.Types.subject(), Permit.Types.object() -> boolean())
Link to this type

keyword_equality_condition()

View Source
@type keyword_equality_condition() :: {Permit.Types.struct_field(), term()}