- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2015 02:51 AM
Hello All,
In our scenario we have created a list of tasks and all the tasks are assigned to some assignment groups.
If the user is from ABC group and when he tries to open a task (which is assigned to another group) from a list of tasks in requested item then all the fields of that task should be read only and an alert message has to be shown that you don't have access to this task.
how can we achieve the above scenario?
Thanks.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2015 02:53 AM
Hi Moulik,
ACL's is the best way to achieve this. You can restrict the write access to the table. Here is the script section you can use.
answer= checkIfMember();
function checkIfMember()
{
var current_user= gs.getUser();
return current_user.isMemberOf(current.assignment_group.name);
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2015 02:53 AM
Hi Moulik,
ACL's is the best way to achieve this. You can restrict the write access to the table. Here is the script section you can use.
answer= checkIfMember();
function checkIfMember()
{
var current_user= gs.getUser();
return current_user.isMemberOf(current.assignment_group.name);
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2015 03:44 AM
Thanks Pradeep,
so for the scenario do we have to write a new ACL ? please let me know
Thanks.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2015 03:45 AM
Correct.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2015 04:25 AM
Hello Pradeep,
wanted to know like can we use onLoad client script using getMyGroups() ?
if yes please let me know how to implement it.
Thanks.