# new CommunitiesEntity(entityMap)
Creates a new CommunitiesEntity instance from the provider parameters.
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
entityMap |
Object | Entity parameters
Properties
|
Methods
# isActionAllowed(action) → {boolean}
Check if current user is allowed to perform a certain action.
Parameters:
Name | Type | Description |
---|---|---|
action |
number | Action to be checked. |
Returns:
- True if current user is allowed to perform action, false otherwise.
- Type
- boolean