Skip to main content

Type

Options for LevelRoles.getUserRoles().

PropertyTypeOptionalDescription
includeCurrentbooleanInclude roles for the user's current level.
includeNextbooleanInclude roles for levels greater than the user.
includePreviousbooleanInclude 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.