0.10.8 (2021-10-04)
Bug Fixes
- ensures update field access control receives id (ffab6c4)
Tag Name: v0.10.8
Release Date: 10/4/2021
Payload CMSPayload CMS is a modern, self-hosted headless content management system built with TypeScript, Node.js, and MongoDB. It's designed specifically for developers who want full control over their content management system while maintaining a powerful admin interface for content editors.
Payload CMS v0.10.8 fixes a critical bug in field access control during update operations. This patch ensures that the document ID is properly passed to access control functions when updating fields, allowing for more accurate permission checks based on document context.
No migration steps are required for this release. The fix is applied automatically when you upgrade to v0.10.8.
However, if you have implemented custom field-level access control functions that were working around the missing ID issue, you may want to review and potentially simplify those implementations now that IDs are properly provided.
This release is recommended for all Payload CMS users, especially those utilizing field-level access control in their applications. The fix addresses a fundamental issue with access control during update operations and could prevent potential security or permission enforcement problems.
Upgrade steps:
npm install [email protected]
# or
yarn add [email protected]
This release addresses an important bug in Payload's field-level access control system. Previously, when updating documents, the document ID was not being properly passed to access control functions for fields. This could lead to inconsistent access control behavior, especially in cases where permissions needed to be determined based on the specific document being updated.
The fix ensures that field access control functions now correctly receive the document ID during update operations, allowing for more precise and context-aware permission checks.
No new features were added in this release.
While not explicitly labeled as a security fix, the correction to field access control could address potential security issues where permissions might not have been properly enforced due to missing document context. By ensuring the document ID is available during access control checks, this patch helps maintain the integrity of your content security model.
No specific performance improvements were included in this release.
This release focuses on a single but important bug fix related to field-level access control during document updates. The impact is primarily on the security and reliability of access control implementations.
By ensuring that document IDs are properly passed to field access control functions during updates, Payload now enables more accurate permission checks based on document context. This is particularly important for applications that implement sophisticated access control rules where permissions depend on the specific document being edited.
While this change is technically small (10 additions, 1 deletion across 3 files), it addresses a fundamental aspect of Payload's security model and ensures that access control behaves consistently across all operations.