Non-static operation.

This operation returns if the current user has the specified role assigned. You need a current security service object to call this operation (which you can get using getSecurityService()).

Interfaces

  • hasRole( role : String ) : Boolean

Parameters

NameTypeDirectionDescriptionAllowed Values / Example
roleStringinSpecify a role that should be checked in respect to the current user. acme_manager


BooleanreturnReturns true or false depending on if the current user has the role specified with role assigned.trueThe user has the specified role.
falseThe user does not have the specified role.
On this Page:
  • No labels