Skip to content

fix(ui): fallback to permissions when permissions.fields is undefined for group fields (#17812) - #17846

Open
Rodrigoue9 wants to merge 1 commit into
payloadcms:mainfrom
Rodrigoue9:fix/bounty-17812
Open

fix(ui): fallback to permissions when permissions.fields is undefined for group fields (#17812)#17846
Rodrigoue9 wants to merge 1 commit into
payloadcms:mainfrom
Rodrigoue9:fix/bounty-17812

Conversation

@Rodrigoue9

Copy link
Copy Markdown

Title

fix(ui): fallback to parent permissions when field permissions are undefined for group fields (#17812)

Description

  • Updates GroupFieldComponent to pass (permissions?.fields ?? permissions) to RenderFields for named group fields.
  • Fixes bug where group children were dropped during render because top-level collections or globals with default permissions did not define an explicit permissions.fields sub-object.
  • Ensures all child inputs inside group fields render properly in the admin panel.

Closes #17812

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

group fields render an empty RenderFields container — no children in the admin

1 participant