omit edit button on group table level
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2024 04:59 AM
Hi All,
we want that only the Group owner can see and use the "edit" button on the related list "Group Members". Therefore we edited the List control and added following omit edit button script.
But some reasons it's not working, can anyone please help us here.
Advance thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2024 05:11 AM
@LaraReddy, try creating Write ACL on sys_user_grmember group table,
if(current.group.manager==gs.getUserID() || gs.hasRole('admin'){
}
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2024 05:33 AM
Hi Siva,
Thanks for the response.
Initially we tried the same approach but no luck with the write ACL, SO that's the reason we're trying omit edit script.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2025 02:08 AM
@LaraReddy
Any solution to this issue. I am also facing the same issue.
Group Manager is not able to see EDIT button
please post here if you got any solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2024 05:13 AM
Can you try this? It's the edit button on the sys_user_grmember table. That table has no 'parent'. It could also be you need a current in there, but it should help.
var answer = true;
var user = gs.getUserID();
if(group.parent.manager == user || gs.hasRole('admin')){
answer = false;
}
return answer;
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark