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

Link to this section Summary

Link to this section Functions

Link to this function

add_allowed_permission_to_account(account, course)

View Source
Link to this function

add_class_permissions(sku, account, class)

View Source
Link to this function

add_free_class_permissions(account, class)

View Source
Link to this function

add_intensive_permissions(token)

View Source

Specs

add_intensive_permissions(
  Peacemaker.Orders.NewOrderToken.t()
  | {:error, String.t()}
) ::
  Peacemaker.Orders.NewOrderToken.t()
  | {Peacemaker.Orders.NewOrderToken.t(), Peacemaker.Account.t()}
  | {:error, String.t()}
Link to this function

add_live_class_permissions(map)

View Source

Accepts a list of live class keys to attach Live Class Permissions

Link to this function

add_live_class_permissions(token, account)

View Source

Specs

add_live_class_permissions(
  Peacemaker.Orders.NewOrderToken.t(),
  Peacemaker.Account.t()
) :: Peacemaker.Orders.NewOrderToken.t()
add_live_class_permissions(
  Peacemaker.Orders.NewOrderToken.t(),
  Peacemaker.Account.t()
) :: Peacemaker.Orders.NewOrderToken.t()
add_live_class_permissions(
  Peacemaker.Orders.NewOrderToken.t(),
  Peacemaker.Account.t()
) :: Peacemaker.Orders.NewOrderToken.t()

Accepts a list of live class keys to attach Live Class Permissions

Link to this function

add_on_demand_class_permission(account, class)

View Source

Specs

add_on_demand_class_permission(Peacemaker.Account.t(), Peacemaker.Class.t()) ::
  Peacemaker.Orders.NewOrderToken.t()

Accepts a list of live class keys to attach Live Class Permissions

Link to this function

add_temporary_allowed_permission_to_account(account, class)

View Source
Link to this function

add_wealthfit_cares_free_course_permission_to_account(account, course)

View Source
Link to this function

apply_intensive_permissions_from_optin(account)

View Source
Link to this function

authorize_class(account, class)

View Source
Link to this function

authorize_intensive(account, intensive)

View Source
Link to this function

can_account_view_course(account, prismic_course_id)

View Source
Link to this function

get_allowed_courses(account)

View Source
Link to this function

get_permissions(account)

View Source
Link to this function

get_permissions!(account)

View Source
Link to this function

remove_allowed_permission_from_account(account, course)

View Source
Link to this function

remove_onhold_courses(account)

View Source
Link to this function

reset_allowed_courses(account)

View Source
Link to this function

set_allowed_courses(account, courses)

View Source
Link to this function

set_fga_free_permissions(account, prospect_id)

View Source
Link to this function

set_fga_three_free_permissions(account, prospect_id)

View Source
Link to this function

set_permissions_for(account, atom)

View Source
Link to this function

set_premium_permissions(account, map)

View Source
Link to this function

set_reia_free_permissions(account, prospect_id)

View Source
Link to this function

snapshot_saved_courses(account)

View Source
Link to this function

toggle_course_permission_for_account(account, course)

View Source