diff --git a/src/components/AdminMainMenu.js b/src/components/AdminMainMenu.js index f43fb71..e8efc55 100644 --- a/src/components/AdminMainMenu.js +++ b/src/components/AdminMainMenu.js @@ -39,14 +39,12 @@ class AdminMainMenu extends Component { const { rights } = this.props; const entries = []; - if (this.isWorker) { - if (rights.includes(RIGHT_USERS)) { - entries.push({ - text: formatMessage(this.props.intl, "admin", "menu.users"), - icon: , - route: "/admin/users", - }); - } + if (this.isWorker && rights.includes(RIGHT_USERS)) { + entries.push({ + text: formatMessage(this.props.intl, "admin", "menu.users"), + icon: , + route: "/admin/users", + }); if (!entries.length) return null;