Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

UI Action not working as expected.

Sattimsetti raj
Tera Contributor

Hi All,

 

We have UI Action called "confirm" to be visible users having problem_coordinator. Please find attached screenshot, but here users who are not having this role were able to see button.

 

How can I find the issue why users without this role were also to see the button. 

1 ACCEPTED SOLUTION

Sumanth16
Mega Patron

Hi @Sattimsetti raj ,

 

Please add anyone of condition in UI action condition:

 

gs.getUser().getRoles().indexOf('problem_coordinator') >= 0 

 

(or)

 

gs.hasRole('problem_coordinator');

 

If I could help you with your Query then, please hit the Thumb Icon and mark it as Correct !!

 

Thanks & Regards,

Sumanth Meda

 

 

View solution in original post

1 REPLY 1

Sumanth16
Mega Patron

Hi @Sattimsetti raj ,

 

Please add anyone of condition in UI action condition:

 

gs.getUser().getRoles().indexOf('problem_coordinator') >= 0 

 

(or)

 

gs.hasRole('problem_coordinator');

 

If I could help you with your Query then, please hit the Thumb Icon and mark it as Correct !!

 

Thanks & Regards,

Sumanth Meda