You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Role-based, bind-if not working in Staging

edited Sep 16, 2019 6:04PM in Visual Builder 2 comments

Content

We have several buttons in our application wrapped in bind-if components.  The bind-if is checking user roles to determine if the button can be displayed or not.  The code is working in dev when we set the Who Am I role options.  However, when we stage the application, the buttons are not behaving correctly.

To test the contents of the user roles, we are displaying the contents of the user roles array (i.e. $application.user.roles[0], $application.user.roles[1], etc.) in input text on the page.  In dev, we can clearly see the correct roles (i.e. Fulfillment, Billing, etc.).  However, in staging, we are seeing hexadecimal values in the roles array.  The values look like 7ab606af4991494b9d09dd5eae177e21.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!