From d58470b2a84b6b4ab1c1a7c15b77c599bfa7964e Mon Sep 17 00:00:00 2001 From: John Kleinschmidt Date: Tue, 30 Jun 2015 14:21:03 -0400 Subject: [PATCH] Made sure imaging and lab techs have access to patient info --- app/mixins/user-session.js | 9 +++++++++ app/templates/index.hbs | 10 ++++++---- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/app/mixins/user-session.js b/app/mixins/user-session.js index f4785f3dcc..cf0b54776e 100644 --- a/app/mixins/user-session.js +++ b/app/mixins/user-session.js @@ -405,6 +405,8 @@ export default Ember.Mixin.create({ 'Finance', 'Finance Manager', 'Hospital Administrator', + 'Imaging Technician', + 'Lab Technician', 'Medical Records Officer', 'Nurse', 'Nurse Manager', @@ -412,6 +414,13 @@ export default Ember.Mixin.create({ 'Social Worker', 'System Administrator' ], + + patient_reports: [ + 'Hospital Administrator', + 'Patient Administration', + 'System Administrator' + ], + pricing: [ 'Data Entry', 'Finance', diff --git a/app/templates/index.hbs b/app/templates/index.hbs index 395a9cb369..c14b687f22 100644 --- a/app/templates/index.hbs +++ b/app/templates/index.hbs @@ -80,10 +80,12 @@ {{/link-to}} {{/if}} - {{#link-to 'patients.reports' class="sub-section-link"}} - Reports - - {{/link-to}} + {{#if userCan_patient_reports}} + {{#link-to 'patients.reports' class="sub-section-link"}} + Reports + + {{/link-to}} + {{/if}} {{/if}}