hasRole()
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
Name  | Type  | Direction  | Description  | Allowed Values / Example  | |
|---|---|---|---|---|---|
role  | String  | in  | Specify a role that should be checked in respect to the current user.  | acme_manager  | |
   | Boolean  | return  | Returns true or false depending on if the current user has the role specified with role assigned.  | true  | The user has the specified role.  | 
false  | The user does not have the specified role.  | ||||
Related Content
Related Pages: