// Add timesheet assignment selector.
$showTimesheetDropdown = $user->isPluginEnabled('ts') &&
($user->can('view_own_timesheets') || $user->can('view_timesheets') ||
// Add timesheet assignment selector.
$showTimesheetDropdown = $user->isPluginEnabled('ts') &&
($user->can('view_own_timesheets') || $user->can('view_timesheets') ||
if ($showTimesheetDropdown) {
$form->addInput(array('type'=>'combobox',
'name'=>'timesheet',
if ($showTimesheetDropdown) {
$form->addInput(array('type'=>'combobox',
'name'=>'timesheet',