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
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 isundiscoverable
or requiresrequest_before_follow
)
Examples
> Bonfire.Boundaries.Users.create_default_boundaries(user)
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)