Delivers true if the authorized EEC user has the assigned user role, otherwise false is delivered.
hasRole(String role) | ||||
---|---|---|---|---|
Argument | String | role | User role | |
Return value | Boolean | true = user has the assigned user role false = user has another user role |
Formula | Result |
---|---|
=if type('Engineering.System').hasRole('Administrator') then 'Access allowed' else 'Access denied! No authorization' endif | Access denied! No authorization |