View Source Authorizir.AuthorizationRule (Authorizir v1.0.1)

Link to this section Summary

Link to this section Types

@type t() :: %Authorizir.AuthorizationRule{
  __meta__: Ecto.Schema.Metadata.t(),
  inserted_at: NaiveDateTime.t() | nil,
  object: Ecto.Schema.belongs_to(Authorizir.Object.t()) | nil,
  object_id: integer() | nil,
  permission: Ecto.Schema.belongs_to(Authorizir.Permission.t()) | nil,
  permission_id: integer() | nil,
  rule_type: (:+ | :-) | nil,
  subject: Ecto.Schema.belongs_to(Authorizir.Subject.t()) | nil,
  subject_id: integer() | nil,
  updated_at: NaiveDateTime.t() | nil
}

Link to this section Functions

Link to this function

new(subject_id, object_id, permission_id, rule_type)

View Source