diff --git a/CHANGELOG.unreleased.md b/CHANGELOG.unreleased.md index d58a8409a..b776463e0 100644 --- a/CHANGELOG.unreleased.md +++ b/CHANGELOG.unreleased.md @@ -6,6 +6,7 @@ - [Backup/Schedule] Add warning regarding DST when you add a schedule [#4042](https://github.com/vatesfr/xen-orchestra/issues/4042) (PR [#4056](https://github.com/vatesfr/xen-orchestra/pull/4056)) - [Import] Avoid blocking the UI when dropping a big OVA file on the UI (PR [#4018](https://github.com/vatesfr/xen-orchestra/pull/4018)) - [Backup NG/Overview] Make backup list title clearer [#4111](https://github.com/vatesfr/xen-orchestra/issues/4111) (PR [#4129](https://github.com/vatesfr/xen-orchestra/pull/4129)) +- [Dashboard] Hide "Report" section for non-admins [#4123](https://github.com/vatesfr/xen-orchestra/issues/4123) (PR [#4126](https://github.com/vatesfr/xen-orchestra/pull/4126)) ### Bug fixes diff --git a/packages/xo-web/src/xo-app/dashboard/overview/index.js b/packages/xo-web/src/xo-app/dashboard/overview/index.js index 0c83d4e0a..426589dbc 100644 --- a/packages/xo-web/src/xo-app/dashboard/overview/index.js +++ b/packages/xo-web/src/xo-app/dashboard/overview/index.js @@ -489,35 +489,37 @@ class DefaultCard extends Component { - - - - - {_('dashboardReport')} - - - - {_('dashboardSendReport')} - -
- {!canSendTheReport && ( - - - {_('dashboardSendReportInfo')} - -
-
- )} - {_('dashboardSendReportMessage')} -
-
- -
+ {props.isAdmin && ( + + + + + {_('dashboardReport')} + + + + {_('dashboardSendReport')} + +
+ {!canSendTheReport && ( + + + {_('dashboardSendReportInfo')} + +
+
+ )} + {_('dashboardSendReportMessage')} +
+
+ +
+ )}