HASROLES
Syntax
<hasroles-expression> := 'HASROLES(' <String> { ',' <String> } ')'
Since
2.0
Return-type
Boolean
Description
This functions checks if the actual user has all of the roles passed as arguments.
If any of the arguments has more than one value, the user only needs to have one of the roles defines in this argument to pass the check.
If any of the arguments contains NULL the functions returns NULL.
Examples
HASROLES( 'iolapAdmin', 'iolapUser' )
Is the current user admin and user?
HASROLES( 'iolapAdmin' | 'iolapUser' )
Is the current user admin or user?
See also
HASUSER, USER
