I have…
- [ x] Read the following guideline: https://docs.squidex.io/01-getting-started/installation/troubleshooting-and-support. I understand that my support request might get deleted if I do not follow the guideline.
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?