Permit (permit v0.0.3)

Authorization facilities for the application.

Link to this section Summary

Link to this section Types

@type t() :: %Permit{
  permissions: Permit.Permissions.t(),
  roles: [Permit.Types.role()],
  subject: Permit.Types.subject() | nil
}

Link to this section Functions

Link to this function

do?(authorization, action, resource)

Link to this function

has_subject(permit)

@spec has_subject(t()) :: boolean()
Link to this function

verify_record(authorization, record, action)

@spec verify_record(t(), Permit.Types.resource(), Permit.Types.action_group()) ::
  boolean()