View Source Bonfire.Boundaries.Users (Bonfire v0.9.10-classic-beta.169)

Reads fixtures in configuration and creates a default boundaries setup for a user

Summary

Functions

Creates the default boundaries setup for a newly-created user.

Creates any missing boundaries for an existing user. Used when the app or config has defined some new types of default boundaries.

Functions

Link to this function

create_default_boundaries(user, opts \\ [])

View Source

Creates the default boundaries setup for a newly-created user.

Parameters

  • user: The user for whom to create the default boundaries.
  • opts: Optional parameters for customizing the boundaries (such as whether the user is undiscoverable or requires request_before_follow)

Examples

> Bonfire.Boundaries.Users.create_default_boundaries(user)
Link to this function

create_missing_boundaries(user)

View Source

Creates any missing boundaries for an existing user. Used when the app or config has defined some new types of default boundaries.

Parameters

  • user: The user for whom to create the missing boundaries.
  • opts: Optional parameters for customizing the boundaries (not currently used)

Examples

> Bonfire.Boundaries.Users.create_missing_boundaries(user)