This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DEVELOPERS FORUM - Hiding action (method) for Users

Reflex_PLM - Monday, December 6, 2010 2:10 AM:

Hi

 

Is there a possibility to hide an action for all users except for one?
Is it possible to use a Method to remove an Action from the right-click context-menu for an ItemType. If so, does anyone have some example code


Ronan - Monday, December 6, 2010 9:14 AM:

Hi Roger,

It must be possible, see for example the following Actions on a standard install:

 

  • "Reset preferences" is visible by everybody
  • "Switch Simple CMM On-Off" is only visible by administrators

I haven't found where to define this aspect though; maybe it's customizable but maybe not. You should have a deeper look at these actions, maybe you'll find something. Alternatively you could have an action visible by everybody whose method behaves differently depending on the user.

Keep us posted about your findings, good day.

 



Ronan - Monday, December 6, 2010 9:27 AM:

Found it and that was quite logical actually: you just have to change the Action permissions:

  1. Open and lock the Action you want to edit
  2. Click on Views > Permissions
  3. Use AdministratorsOnly if it is what you want, or "Create Private" if you need something else



Reflex_PLM - Monday, December 6, 2010 11:08 AM:

Thanks its working fine