Billing: base access to the billing info for general users - 'Billing centers' charts is hidden for general users
@@ -635,7 +635,8 @@ function GeneralReport ({
filters
);
const props = {authenticatedUserInfo};
- const onBillingCenterSelect = roleModel.isManager.billing({props})
+ const isBillingManager = roleModel.isManager.billing({props});
+ const onBillingCenterSelect = isBillingManager
? navigation.wrapNavigation(navigation.billingCentersNavigation, filters)
: undefined;
const composers = (discounts) => [
@@ -732,6 +733,8 @@ function GeneralReport ({
<div
key={GeneralReportLayout.Panels.runners}
>
+ {
+ isBillingManager && (
<Layout.Panel>
<ResizableContainer style={{width: '100%', height: '100%'}}>
{
@@ -747,6 +750,8 @@ function GeneralReport ({
}
</ResizableContainer>
</Layout.Panel>
+ )
+ }
</div>
</Layout>
</Export.Consumer>
