sql_membership_provider v0.1.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

Link to this type

t()

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)

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

Fetch all roles that a user belongs to.