enable attachments for group members
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2024 01:20 PM
Hello, I am trying to allow users of certain groups to be able to modify attachments on the RITM. I currently have an write acl with a script but doesn't seem to work. any help is appreciated
if(gs.getUser().isMemberOf('GPC A/BO' && g_form.getDisplayBox('cat_item').value == 'Purchase Request' )) {
answer = true;
}
else{
answer = false;
}
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2024 04:22 PM
g_form is a client-side API and therefore cannot be used in an ACL script. You need to use an appropriate server-side API instead. Additionally, one of the brackets in your code seems to be misplaced. Give this a try:
if (gs.getUser().isMemberOf('GPC A/BO') && current.cat_item.name == 'Purchase Request') {
answer = true;
} else {
answer = false;
}
Blog: https://sys.properties | Telegram: https://t.me/sys_properties | LinkedIn: https://www.linkedin.com/in/slava-savitsky/