sql_membership_provider v0.2.0 SqlMembershipProvider.Role

Struct for representing a security role that a user may assume

Link to this section Summary

Functions

Fetch all roles that a user belongs to.

Link to this section Types

Specs

t() :: %SqlMembershipProvider.Role{
  application_id: String.t(),
  description: String.t() | nil,
  lowered_role_name: String.t(),
  role_id: String.t(),
  role_name: String.t()
}

Link to this section Functions

Link to this function

find_by_user_id(pid, user_id)

Specs

find_by_user_id(atom() | pid(), String.t()) :: [t()]

Fetch all roles that a user belongs to.