Skip to content

Commit

Permalink
Merge pull request #97 from openimis/hotfix/moldova-price-management
Browse files Browse the repository at this point in the history
hotfix: add contribution filter
  • Loading branch information
malinowskikam authored Mar 14, 2024
2 parents 825f8b3 + 9dfe7ff commit 738d199
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/components/AdminMainMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ class AdminMainMenu extends Component {
});
}

entries.push(
...this.props.modulesManager
.getContribs(ADMIN_MAIN_MENU_CONTRIBUTION_KEY)
.filter((c) => !c.filter || c.filter(rights)),
);

if (!entries.length) return null;

return (
Expand Down

0 comments on commit 738d199

Please sign in to comment.