Field Rules for User Role Not Working

I have…

I’m submitting a…

  • [ ] Regression (a behavior that stopped working in a new release)
  • [ x] Bug report
  • [ ] Performance issue
  • [ ] Documentation issue or request

Current behavior

When trying to utilize the Field rules for user role it seems the rule is not applying the rule correctly.

Expected behavior

Fields disabled, hidden, etc based on user role specified

Minimal reproduction of the problem

  • Navigate to schema, click more, and scroll to Field Rules section

  • Add a new rule to disable the field

  • use a rule: user.role === ‘UserRole’

  • Field is NOT disabled for user role

  • Navigate to schema, click more, and scroll to Field Rules section

  • Add a new rule to disable the field

  • use a rule: “user.role === ‘UserRole’”

  • Field is disabled for ALL user roles

Environment

App Name:

  • [x ] Self hosted with docker
  • [ ] Self hosted with IIS
  • [ ] Self hosted with other version
  • [ ] Cloud version

Version: 5.0.0

Browser:

  • [x ] Chrome (desktop)
  • [ ] Chrome (Android)
  • [ ] Chrome (iOS)
  • x[ ] Firefox
  • [ ] Safari (desktop)
  • [ ] Safari (iOS)
  • [ ] IE
  • [x ] Edge

Others:
Similar to [IMPLEMENTED] Conditional field according to user
Is this in latest version?

It is not implemented in your version.

What version does have it and I can see if we can upgrade.

Thank you

I am not sure. It was a one liner I think and therefore not part of the changelog.