diff --git a/src/components/Sidenav/SidenavContent.js b/src/components/Sidenav/SidenavContent.js
index f017ccb..5a4becf 100644
--- a/src/components/Sidenav/SidenavContent.js
+++ b/src/components/Sidenav/SidenavContent.js
@@ -101,10 +101,10 @@ class SidebarContent extends React.Component {
return (
{ this.nav = c; }}>
- {loggedUser.anyOf(planScheduler, visitReporter) &&
+ {loggedUser.anyOf(visitReporter) &&
- Create Visit
}
- {!loggedUser.anyOf(planScheduler, visitReporter) &&
+ {!loggedUser.anyOf(visitReporter) &&
-
directions_carRides
@@ -113,7 +113,7 @@ class SidebarContent extends React.Component {
}
- {!loggedUser.anyOf(planScheduler, visitReporter) &&
+ {!loggedUser.anyOf(visitReporter) &&
-
people_outlineMembers
@@ -122,36 +122,40 @@ class SidebarContent extends React.Component {
}
- -
- scheduleVisits
-
- - Create Visit
- - Manage Visits
-
-
+ {!loggedUser.anyOf(visitReporter) &&
+ -
+ scheduleVisits
+
+ - Create Visit
+ - Manage Visits
+
+
+ }
- -
- settingsManage
-
- {!loggedUser.anyOf(planScheduler, providerScheduler) &&
+ {!loggedUser.anyOf(visitReporter) &&
+ -
+ settingsManage
+
+ {!loggedUser.anyOf(planScheduler, providerScheduler) &&
+ -
+ peopleAuthorized Users
+
+ }
-
- peopleAuthorized Users
+ assignmentOrganizations
- }
- -
- assignmentOrganizations
-
- -
- local_hospitalParticipating Providers
-
- -
- account_circleProfile
-
- {/* -
- equalizerReports
-
*/}
-
-
+ -
+ local_hospitalParticipating Providers
+
+ -
+ account_circleProfile
+
+ {/* -
+ equalizerReports
+
*/}
+
+
+ }
diff --git a/src/utils/authorization/normalizeRoles.js b/src/utils/authorization/normalizeRoles.js
index 4071129..135a705 100644
--- a/src/utils/authorization/normalizeRoles.js
+++ b/src/utils/authorization/normalizeRoles.js
@@ -11,7 +11,7 @@ const normalizeRoles = (profiles) => {
}
if (roleKeys.length === 1) {
- return profiles[roleKeys[0]].authorize;
+ return profiles[roleKeys[0]].roles;
}
const roles = profiles.reduce((result, profile) => {