- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-02-2015 09:25 AM
I am trying to restrict the Ui action button only to certain groups
gs.getUser().isMemberOf('group1'&&'group2') this doesn't work
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-02-2015 10:19 AM
try gs.getUser().isMemberOf('group1') && gs.getUser().isMemberOf('group2')
Do you really want AND here, or do you want OR?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-02-2015 10:19 AM
try gs.getUser().isMemberOf('group1') && gs.getUser().isMemberOf('group2')
Do you really want AND here, or do you want OR?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-02-2015 11:55 AM
the button must be available for Bothe the groups
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-02-2015 12:05 PM
Then it is OR Condition
gs.getUser().isMemberOf('group1') || gs.getUser().isMemberOf('group2')
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-02-2015 10:19 AM
HI Kumar,
Why cant you write this as
gs.getUser().isMemberOf('group1') && gs.getUser().isMemberOf('group2')
Thanks
Srini