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