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 @@
- -

Actions:  

- - - {$actions} - - View Imaging datasets - - + {$actions}


@@ -129,7 +121,7 @@ Data Missing {/if} - + {if $timePoints[timepoint].feedbackCount} {$timePoints[timepoint].feedbackStatus} diff --git a/modules/timepoint_list/templates/timepoint_list_controlpanel.tpl b/modules/timepoint_list/templates/timepoint_list_controlpanel.tpl index 2838b6caad7..f33fdc74121 100644 --- a/modules/timepoint_list/templates/timepoint_list_controlpanel.tpl +++ b/modules/timepoint_list/templates/timepoint_list_controlpanel.tpl @@ -1,4 +1,14 @@ -{if $isDataEntryPerson} - Create time point - Candidate Info +{if $isDataEntryPerson || $isImagingPerson} + +

Actions:  

+ + + {if $isDataEntryPerson} + Create time point + Candidate Info + {/if} + {if $isImagingPerson} + View Imaging datasets + {/if} + {/if}