payload icon indicating copy to clipboard operation
payload copied to clipboard

Access: prevent update on richtext doesn't disable the UI field

Open chrisvanmook opened this issue 1 year ago • 1 comments

Link to reproduction

https://github.com/chrisvanmook/payload/commit/6b183bf44f29f667edfae17d0a61d36cf4f7d809

Payload Version

3.0.0-beta.60

Node Version

v20.11.1

Next.js Version

15.0.0-canary.58

Describe the Bug

When adding the following to a field:

access: {
        update: ({ req }) => {
          return false;
        },
      },

it disables the UI, except for the richtext editor: image

Reproduction Steps

Add the following to a collection:

{
      name: 'richText',
      type: 'richText',
      access: {
        update: () => false,
      },
    },

Note that the richtext field isn't disabled in the UI.

Adapters and Plugins

db-postgres

chrisvanmook avatar Jul 16 '24 09:07 chrisvanmook

This issue has been marked as stale due to lack of activity.

To keep this issue open, please indicate that it is still relevant in a comment below.

github-actions[bot] avatar Dec 13 '24 05:12 github-actions[bot]

This issue was automatically closed due to lack of activity.

github-actions[bot] avatar Dec 21 '24 05:12 github-actions[bot]

This is fixed - can no longer be reproduced as of 3.16.0

AlessioGr avatar Jan 10 '25 22:01 AlessioGr

This issue has been automatically locked. Please open a new issue if this issue persists with any additional detail.

github-actions[bot] avatar Jan 12 '25 04:01 github-actions[bot]