View Source Glific.AccessControl.Permission (Glific v5.1.6)

The minimal wrapper for the base Access Control Permission structure

Link to this section Summary

Functions

Standard changeset pattern we use for all data types

Link to this section Types

@type t() :: %Glific.AccessControl.Permission{
  __meta__: Ecto.Schema.Metadata.t(),
  entity: String.t() | nil,
  id: non_neg_integer() | nil,
  inserted_at: :utc_datetime | nil,
  roles: term(),
  updated_at: :utc_datetime | nil
}

Link to this section Functions

Link to this function

changeset(permission, attrs)

View Source
@spec changeset(t(), map()) :: Ecto.Changeset.t()

Standard changeset pattern we use for all data types