OpenWGA 7.11 - TMLScript reference

TMLContext "this"
Method :


On object TMLContext "this"
Usage Tests if the user has the given user role
Description This is the TMLScript pendant of WebTML attribute hasroles. Unlike this it only takes one role as parameter, as it can be used multiple times in the same TMLScript expression.

role (String):

User role to test

Return value true if the current user has the given role
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions