AuthShield v0.0.4 AuthShield.Resources.Schemas.Permission View Source
Defines all permissions that an role can have.
We use it to create a role-based access control (RBAC) in order to restrict system access to users that has specif roles.
Link to this section Summary
Functions
Generates an Ecto.Changeset
struct with the changes.
Link to this section Types
Link to this type
t()
View Sourcet() :: %AuthShield.Resources.Schemas.Permission{ __meta__: term(), description: String.t(), id: binary(), inserted_at: NaiveDateTime.t(), name: String.t(), roles: [AuthShield.Resources.Schemas.Role.t()], updated_at: NaiveDateTime.t() }
Abstract permission module type.
Link to this section Functions
Link to this function
changeset(model, params)
View Sourcechangeset(model :: t(), params :: map()) :: Ecto.Changeset.t()
Generates an Ecto.Changeset
struct with the changes.