cms icon indicating copy to clipboard operation
cms copied to clipboard

user group condition selectable when applying pc

Open i-just opened this issue 1 year ago • 0 comments

Description

Allow the User Group condition to be selectable if we’re applying external project config changes (if the changes are likely to add user group(s).

At the moment, if you’re installing a new project using the existing config (or if you were to add the first user group and a rule that depends on it to an existing project in one go), the User Group condition won’t be added as the craft\elements\conditions\users\GroupConditionRule->isSelectable() will always be false (because there are no groups for the project yet). Since adding user groups can’t happen earlier on, we need to check if the user groups are likely to be added when applying changes, and if so, allow this rule to be selectable.

Related issues

#15037

i-just avatar May 22 '24 11:05 i-just