feat(xo-web/menu): hide Tasks entry for self users (#3373)

Fixes #3311
This commit is contained in:
Pierre Donias
2018-08-30 15:44:30 +02:00
committed by Julien Fontanet
parent 0ca5a32142
commit 2fd5a6501b
2 changed files with 2 additions and 1 deletions

View File

@@ -5,6 +5,7 @@
### Enhancements
- [Backup (file) restore] Order backups by date in selector [#3294](https://github.com/vatesfr/xen-orchestra/issues/3294) (PR [#3374](https://github.com/vatesfr/xen-orchestra/pull/3374))
- [Self] Hide Tasks entry in menu for self users [#3311](https://github.com/vatesfr/xen-orchestra/issues/3311) (PR [#3373](https://github.com/vatesfr/xen-orchestra/pull/3373))
### Bug fixes

View File

@@ -321,7 +321,7 @@ export default class Menu extends Component {
],
},
isAdmin && { to: '/about', icon: 'menu-about', label: 'aboutPage' },
{ to: '/tasks', icon: 'task', label: 'taskMenu', pill: nTasks },
!noOperatablePools && { to: '/tasks', icon: 'task', label: 'taskMenu', pill: nTasks },
isAdmin && { to: '/xosan', icon: 'menu-xosan', label: 'xosan' },
!(noOperatablePools && noResourceSets) && {
to: '/vms/new',