isTeamLeader

Description

Verifies if the specified user is a team leader on the project (if it is a component lead).

Parameters

Return Type

Boolean

A "true" return value means that the specified user is component lead on at least one component of the specified project.

Example

//Team leaders of the current project are : TM1 and TM2 isTeamLeader(project, currentUser());

Returns "true" if the current user is TM1 or TM2 and "false" if the current user is other than TM1 or TM2.

See also