# new CommunitiesSettings(settingsMap)
Creates a CommunitiesSettings.
Parameters:
Name | Type | Attributes | Default | Description | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
settingsMap |
Object | Settings parameters
Properties
|
||||||||||||||||||||||||||||||||
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