CommunitiesSettings

CommunitiesSettings

# new CommunitiesSettings(settingsMap)

Creates a CommunitiesSettings.
Parameters:
Name Type Attributes Default Description
settingsMap Object Settings parameters
Properties
Name Type Attributes Default Description
allowedActions Object.<number, boolean> <optional>
{} Allowed actions
properties Object.<string, string> <optional>
{} Properties
isPrivate boolean <optional>
false True if is private
isDiscoverable boolean <optional>
false True if is discoverable
permissions Object.<number, number> <optional>
{} Permissions
params.labels Array.<string> <optional>
[] Labels.

Methods

# isActionAllowed(action) → {boolean}

Check if current user is allowed to perform a certain action.
Parameters:
Name Type Description
action number Action.
Returns:
- True, if current user is allowed to perform action, false otherwise.
Type
boolean