Type
Options for LevelRoles.getUserRoles().
| Property | Type | Optional | Description |
|---|---|---|---|
| includeCurrent | boolean | ✅ | Include roles for the user's current level. |
| includeNext | boolean | ✅ | Include roles for levels greater than the user. |
| includePrevious | boolean | ✅ | Include roles for levels lower than the user. |
info
By default, LevelRoles.getUserRoles() includes only roles from the user's current level (includeCurrent = true).
Setting other options to true will include those roles in addition to current-level roles.