You may want to hide certain items in the Actions menu of Interative Reports, like Flashback, Subscription, etc., for certain users.
Only the Download item has this option out-of-the-box, although it is limited to an Authorization Scheme.
So if you want to be more flexible, a solution like this may be the answer.
In this example I have enabled the Flashback item in the IR attributes, but then hidden if for all users except ADMIN. Change that to any logic you like.
I decided to use the icon as the Jquery selector, which is a compromise of course. I didn't want to use the name (since that may get translated) and also not the action_menu_* id present in the html, because that could also change over time. So using the icon seemed like a good idea - feel free to come up with your own Jquery selector.
- I added the line "$(".icon-irr-flashback").parents("li").prev().hide();" to the DA. This is only needed if you have to hide a separator (which I need here for the Flashback item because it is between 2 seperators, so that looks a bit weird).
- Setting the Event Scope to Dynamic is essential, otherwise the DA will not trigger.