- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2024 09:21 PM
Hello.
I would like to allow user who is set to the variable "manager (Type:Reference)" of the catalog item to have access to the ticket page for the requested item.
The user set to the variable "manager" does not have any roles.
Is there any way to achieve this except by using a watch list and role assignments?
Version: Vancouver
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2024 09:25 PM
Hello @ykoba
Create a read acl on requested item with script has below
var b = current.manager;
if(gs.getUserID()==current.manager)
{
answer = true
}
if it helps kindly click on like icon and mark it as accepted solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2024 09:25 PM
Hello @ykoba
Create a read acl on requested item with script has below
var b = current.manager;
if(gs.getUserID()==current.manager)
{
answer = true
}
if it helps kindly click on like icon and mark it as accepted solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2024 10:07 PM
Hello @siva krishna M2 ,
Thank you so much for your quick response.
It worked with the following code.
var b = current.variables.manager;
if(gs.getUserID()==b)
{
answer = true
}
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2024 09:30 PM
Hi @ykoba ,
Your question is not clear can you explain a little bit more if possible with screenshots ?
☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....