What happened?
Description
A user conditional with the following rules is not applied when starting a project for the first time:
userCondition:
class: craft\elements\conditions\users\UserCondition
conditionRules:
-
class: craft\elements\conditions\users\GroupConditionRule
operator: in
uid: 34b06532-29f1-44a6-9acf-ba26f8a7389e
values:
- 21006657-ecd9-43d2-8813-4cfc3db35488 # **USERGROUP**
elementType: craft\elements\User
fieldContext: global
Steps to reproduce
- Create a usergroup
- Create an entry type
- Add a field with the condition as seen above
- Verify that it works
- Close down project
- Start it up from scratch
Expected behavior
User condition in place
Actual behavior
No user condition in place, inspite it being saved to PC
Craft CMS version
5.1.2
PHP version
8.3
Operating system and version
No response
Database type and version
PostgreSQL
Image driver and version
No response
Installed plugins and versions
What happened?
Description
A user conditional with the following rules is not applied when starting a project for the first time:
Steps to reproduce
Expected behavior
User condition in place
Actual behavior
No user condition in place, inspite it being saved to PC
Craft CMS version
5.1.2
PHP version
8.3
Operating system and version
No response
Database type and version
PostgreSQL
Image driver and version
No response
Installed plugins and versions