User is not able to see the Ui action even though the condition satisfies

kranthi2
Tera Expert

Hi,

User is not able to see the Ui action even though the condition satisfies.

current.state == '18' && ((current.assigned_to == gs.getUserID()) || gs.hasRole('admin'));

 

kranthi2_0-1699870473353.png

 

4 REPLIES 4

Jaspal Singh
Mega Patron
Mega Patron

Hi Kranthi,

Try below

current.state == 18 && ((current.assigned_to == gs.getUserID()) || gs.hasRole('admin'));

Actually it is working for all the users but only one user is facing the issue. until unless i am pretty much sure can't able to modify the script.

Please suggest.

Thanks,

Are you sure the conditions are satisfied? Is the Assigned To same as logged in user or has 2 different profiles?

Yes condition has been already satisfied.

logged in user same as the assigned to