Function isGroupLeader
Function checks if the user is a group leader in a role of the current organization. If you use the @b roleId parameter you can check if the user is group leader of that role.
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
integer |
$userId |
The id of the user who should be checked if he is a group leader |
integer |
$roleId = 0 |
<p>(optional) If set <> 0 than the function checks if the user is group leader of this role otherwise it checks if the user is group leader in one role of the current organization</p> |
Return value summary
boolean
|
Returns @b true if the user is a group leader |