context.getUser().getRoles().contains('[RoleName]');
Author: Mark Hughes
Re: X-Pages Hide When Based on User Role
checked
Hello. I need something like this for my application. I have an application for Notes Client, and on launch an Xpage is opened, which contains links to different framesets... So on every link i want different users to go to different framesets. For example if user is member of "worker" i need him to go to "this" frameset, if it's not, than go to "that" frameset. Can you please tell me how to do it?
Tnx a lot, i would very much appreciate it :)
X-Pages Hide When Based on User Role
Thanks! I just used it today!