/**
 * is user leader of person?
 *
 * @param int $leader_id          
 * @param int $person_id          
 * @return boolean
 */
function churchdb_isPersonLeaderOfPerson($leader_id, $person_id)
{
    $myGroups = churchdb_getMyGroups($leader_id, true, true);
    if (count($myGroups) > 0) {
        return churchdb_isPersonInGroups($person_id, $myGroups);
    }
    return false;
}
/**
 * is user leader or mitarbeiter of person in one group?
 *
 * @param int $leader_id
 * @param int $person_id
 * @return boolean
 */
function churchdb_isPersonLeaderOfPerson($leader_id, $person_id)
{
    $myGroups = churchdb_getMyGroups($leader_id, true, true);
    return !count($myGroups) ? false : churchdb_isPersonInGroups($person_id, $myGroups);
}