Hide a module in the navigation pane

Srinidhi Hari E
Kilo Contributor

Hello,

I want to hide a module 'Custom Assets'   when the current logged in user is not a manager. Is there any way of scripting this?

I tried writing a Before query business rule on the modules table to list all modules except Custom Assets but it hides only in the modules list and not in the navigation pane.

Following a community post, created a dummy module and tried hiding Custom Assets using HTML from arguments, that didn't work either.

Any help?

Thanks!

6 REPLIES 6

Anurag Tripathi
Mega Patron
Mega Patron

query BR on module table will work, whats the issue there??


-Anurag

A query business rule (or similarly, an ACL) does not work in this case, because the Navigator does not query the module table for its rendering, and thus any rule gets ignored. For security and performance reasons, scripts are not allowed to affect modules. The only way to hide a module is by restricting the roles, or setting the Active flag (which can be done programmatically in a Scheduled Job or similar, but not separately for individual users).