Peacemaker.Permissible (Peacemaker v3.3.5-rc.7) View Source

The Ecto Repo module for the "permissibles" table. This is meant to replace the legacy WealthFit role system.

Link to this section Summary

Functions

Creates a new Permissible entity.

Returns a list of Permissible entities.

Creates a new Permissible entity.

Returns a list of all permissible types.

Link to this section Types

Specs

t() :: %Peacemaker.Permissible{
  __meta__: term(),
  id: term(),
  name: String.t(),
  type: String.t()
}

Link to this section Functions

Specs

create(%{type: String.t()}) :: {:ok | :error, t() | String.t()}

Creates a new Permissible entity.

A Permissible Entity is intended to be a feature that should be private, (e.g: paywall)

Returns a list of Permissible entities.

Specs

find_one(name: String.t(), type: String.t()) :: t() | nil
find_one(name: String.t(), type: String.t()) :: t() | nil

Creates a new Permissible entity.

A Permissible Entity is intended to be a feature that should be private, (e.g: paywall)

Specs

list_permissibles() :: [String.t()]

Returns a list of all permissible types.