GlideUser - hasRoles()

Returns true if the current user has any role.

Table 1. Parameters
Name Type Description
None
Table 2. Returns
Type Description
Boolean Returns true if the current user has at least one role.

var yesRole = g_user.hasRoles();