- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-05-2025 02:24 AM
In alm_asset table I have location field. My requirement is, the asset record should be editable to only those users whose location match with the location of asset record. For others it should be read only except for admins and some other roles. Please suggest how to implement this
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-05-2025 02:30 AM - edited ‎06-05-2025 02:55 AM
Hi @Akshaykhare
Create a 'Deny Unless' Write ACL on the alm_asset table, using an advanced script condition to validate the logged-in user's location.
if (current.getValue('location') == gs.getUser().getRecord().getValue('location')) {
answer = true;
} else {
answer = false;
}
Regards,
Siva
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-05-2025 02:30 AM - edited ‎06-05-2025 02:55 AM
Hi @Akshaykhare
Create a 'Deny Unless' Write ACL on the alm_asset table, using an advanced script condition to validate the logged-in user's location.
if (current.getValue('location') == gs.getUser().getRecord().getValue('location')) {
answer = true;
} else {
answer = false;
}
Regards,
Siva