This PR changes how Users field sources are parsed. If not all sources are selected: iterate through the ones that start with group: and search for matching users based on the group IDs. The other source that could be selected in Craft 3 is admins - if it’s selected, we have to search for the matching user among admins too.
~~This PR should only be merged into v4, please.
(I’ll raise a separate one for v5 as there we also have to take care of credentialed and inactive sources.)~~
It should be ok to merge into v4 and v5, but v5 needs one more PR (#1338) to take care of credentialed and inactive sources.
Description
This PR changes how
Users
field sources are parsed. If not all sources are selected: iterate through the ones that start withgroup:
and search for matching users based on the group IDs. The other source that could be selected in Craft 3 isadmins
- if it’s selected, we have to search for the matching user among admins too.~~This PR should only be merged into
v4
, please. (I’ll raise a separate one for v5 as there we also have to take care ofcredentialed
andinactive
sources.)~~ It should be ok to merge into v4 and v5, but v5 needs one more PR (#1338) to take care ofcredentialed
andinactive
sources.Related issues
844