Returns true/false depending if the user has the indicated role.

1 system.user.hasWebOSRole

<system.user.hasWebOSRole
    role='role'
    code='code'
/>
Example

You can know if the user has the mailtool role.

Copy
<xsql-script name='system_user_hasWebOSRole_sample1'>
    <body>
        <println>
            <system.user.hasWebOSRole role='mailtool'/>
        </println>
    </body>
</xsql-script>

If you do not pass an user code via the attribute code, the system returns the value related with the user which executes the command.

Example

You can know if a specific user has the mailtool role.

Copy
<xsql-script name='system_user_hasWebOSRole_sample2'>
    <body>
        <println>
            <system.user.hasWebOSRole role='mailtool' code='jet'/>
        </println>
    </body>
</xsql-script>

Informing the attribute code, the system returns the value related with the specified user code.