Check if entity reference field (user) contains current user
Check following code:

global $user;
$team_members = array();
foreach($current_node-&gt;field_team['und'] as $team){
$team_members[] = $team['target_id'];
}

if (in_array($user-&gt;uid, $team_members)) {
$output = 'some_specific_content'; 
} else {
$output = 'you are not a team member of this project';
}