Popup/Info Message for the approval widget on portal

Sudeep
Tera Contributor

Hello All,

For the Approval Widget on the portal I want to show the popup once you clicked on the record but only when logged in user doesn't have approver role.

I have tried to do that but it showing every time

Any Idea how can this be achieved?


Thank you in advance!

6 REPLIES 6

Hello Tobias,

I have tried but still facing the same issue.

Thank you!

Hi Sudeep,

so you are still getting the message for every user you are testing? Have you ensured that you're not testing with an user that has admin rights? Because hasRole evaluates to true on admins usually.

You could also change hasRole to hasRoleExactly to explicitly check if the current user has the approver_user role. This way admin would also get false if he doesn't have approver_user role assigned to him.