- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2017 07:11 AM
The best practice is to grant access to modules/menus by role. This is much more efficient as roles are cached during the user's session - that's why you need to logout/login when given new roles. Using a script means you are imposing a load on the system where caching is not involved and could cause performance issues. What's more, later administrators may find your script difficult to find and/or maintain.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2019 08:42 AM
Yes, per SN recommendation we will use a cost-added role for a user that only needs read access. That sounds efficient. SN clearly does not understand the use-case in these scenarios.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2017 11:21 AM
Hey Ankit,
Say Chuck said, give roles to that modules/menus.
Or you can give role to that group and hide on that basis -
if(gs.getUser().isMemberOf('Group_name') && gs.getUser().hasRole('group_role'))
{
var car= current.addQuery('title','!=','Self-Service');
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2017 11:30 AM
Hey Nayan,
Thanks code working fine and i was facing issue because of cache.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2017 05:39 PM
Hi Nayan,
The code is not working for me. This business rule just appears very flaky.
Did you put your codes in the block of
(function executeRule(current, previous /*null when async*/) {
})(current, previous);
In the When to run tab, I just used "before" with "Query" ticked. No other change on this business rule.
I am on Istanbul Patch 5.
Any idea why it's not working?
Cheers
Johnny