Skip to content

Commit

Permalink
Merge pull request #96 from openimis/hotfix/moldova-fix
Browse files Browse the repository at this point in the history
hotfix: change condition
  • Loading branch information
malinowskikam authored Mar 1, 2024
2 parents 2c209b9 + 34d49e4 commit 825f8b3
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/components/AdminMainMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: <Person />,
route: "/admin/users",
});
if (this.isWorker) {
if (rights.includes(RIGHT_USERS)) {
entries.push({
text: formatMessage(this.props.intl, "admin", "menu.users"),
icon: <Person />,
route: "/admin/users",
});
}

if (!entries.length) return null;

Expand Down

0 comments on commit 825f8b3

Please sign in to comment.