Skip to content

Commit

Permalink
hotfix: add contribution filter
Browse files Browse the repository at this point in the history
  • Loading branch information
olewandowski1 committed Mar 14, 2024
1 parent 825f8b3 commit 9dfe7ff
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 9dfe7ff

Please sign in to comment.