diff --git a/modules/timepoint_list/php/timepoint_list_controlpanel.class.inc b/modules/timepoint_list/php/timepoint_list_controlpanel.class.inc index 9bd30f99854..f77c0d4c793 100644 --- a/modules/timepoint_list/php/timepoint_list_controlpanel.class.inc +++ b/modules/timepoint_list/php/timepoint_list_controlpanel.class.inc @@ -65,6 +65,15 @@ Class TimePoint_List_ControlPanel extends \Candidate $this->tpl_data['isDataEntryPerson'] = $user->hasCenterPermission("data_entry", $cand_CenterID); + $this->tpl_data['isImagingPerson'] = $user->hasAnyPermission( + [ + 'imaging_browser_view_site', + 'imaging_browser_view_allsites', + 'imaging_browser_phantom_allsites', + 'imaging_browser_phantom_ownsite' + ] + ); + //set the baseurl of the tpl_data $factory = \NDB_Factory::singleton(); $settings = $factory->settings(); diff --git a/modules/timepoint_list/templates/menu_timepoint_list.tpl b/modules/timepoint_list/templates/menu_timepoint_list.tpl index 7b859b246b5..507a369498f 100644 --- a/modules/timepoint_list/templates/menu_timepoint_list.tpl +++ b/modules/timepoint_list/templates/menu_timepoint_list.tpl @@ -51,15 +51,7 @@