OneIdentity / IdentityManager.Imx

HTML5 source code for Identity Manager web apps
Other
26 stars 107 forks source link

Hide some menu items #139

Closed zime-rch closed 1 month ago

zime-rch commented 2 months ago

Hi

What is the right way to hide some menu items? This even the rights to see the items are available. Example, we would like to disable in Setup Menu the item Reports, because we do not want to provide this feature to the End User in the new web Portal.

Regards, René

SebastianWeberQuest commented 1 month ago

Hi @zime-rch

The right way to this is not to push the corresponding MenuItem with the ID "RPS_Reports" in the projects\rps\src\lib\reports\edit-report.module.ts

If you remove this code the End User cannot see this Reports Menu Item in the Setup Menu.

However, since the page can still be accessed (if you know the route), I would also recommend that you remove the route to the reports page. Therefore you have to remove the route with the path: 'reports' in projects\rps\src\lib\rps-config.module.ts

Regards, Sebastian