Function hasRole
Function checks if the user is a member of the role. If @b userId is not set than this will be checked for the current user
Copyright:
2004-2016 The Admidio Team
License: GNU General Public License v2.0 only **********************************************************************************************
Located at
License: GNU General Public License v2.0 only **********************************************************************************************
Located at
Parameters summary
string |
$roleName |
The name of the role where the membership of the user should be checked |
integer |
$userId = 0 |
<p>The id of the user who should be checked if he is a member of the role. If @userId is not set than this will be checked for the current user</p> |
Return value summary
boolean
|
Returns @b true if the user is a member of the role |