Skip to content

fix: field visibility on create-first-user screen#17008

Open
deepshekhardas wants to merge 1 commit into
payloadcms:mainfrom
deepshekhardas:fix/field-visibility-create-first-user
Open

fix: field visibility on create-first-user screen#17008
deepshekhardas wants to merge 1 commit into
payloadcms:mainfrom
deepshekhardas:fix/field-visibility-create-first-user

Conversation

@deepshekhardas

Copy link
Copy Markdown
Contributor

Fields with \�ccess.read: false\ were still shown on the create-first-user screen because field permissions were granted
ead: true\ and \update: true\ for all fields unconditionally.

Fix: Set base field permissions to { create: true }\ only, so that per-field access controls are respected. The \docPermissionsForForm\ at the document level already grants \create: true,
ead: true, \update: true, so the document is fully accessible — only field-level read/update restrictions are preserved.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant