if ($user->can('view_reports') || $user->isClient()) {
// Prepare user and assigned projects arrays.
if ($user->can('view_reports')) {
if ($user->can('view_reports') || $user->isClient()) {
// Prepare user and assigned projects arrays.
if ($user->can('view_reports')) {
if ($user->can('view_own_reports'))
$options = array('max_rank'=>$user->rank-1,'include_self'=>true);
else
$options = array('max_rank'=>$user->rank-1);
if ($user->can('view_own_reports'))
$options = array('max_rank'=>$user->rank-1,'include_self'=>true);
else
$options = array('max_rank'=>$user->rank-1);
}
elseif ($user->isClient())
$users = ttTeamHelper::getUsersForClient(); // Active and inactive users for clients.
}
elseif ($user->isClient())
$users = ttTeamHelper::getUsersForClient(); // Active and inactive users for clients.