Skip to content

fix: pass id to delete access control on trash attempts in updateByID#17454

Open
mariovalney wants to merge 1 commit into
payloadcms:3.xfrom
mariovalney:fix/issue-17452
Open

fix: pass id to delete access control on trash attempts in updateByID#17454
mariovalney wants to merge 1 commit into
payloadcms:3.xfrom
mariovalney:fix/issue-17452

Conversation

@mariovalney

Copy link
Copy Markdown

The delete access control callback did not receive the document id when checking permissions for a soft-delete (trash) attempt inside updateByID, making it impossible to rely on id in access functions and forcing developers to inspect data.deletedAt instead.

Fixes #17452

The delete access control callback did not receive the document id when
checking permissions for a soft-delete (trash) attempt inside updateByID,
making it impossible to rely on id in access functions and forcing
developers to inspect data.deletedAt instead.
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.

1 participant