chore: make overrideAccess explicit in templates - #17864
Draft
nathanlentz wants to merge 1 commit into
Draft
Conversation
Contributor
📦 esbuild Bundle Analysis for payloadThis analysis was generated by esbuild-bundle-analyzer. 🤖
Largest pathsThese visualization shows top 20 largest paths in the bundle.Meta file: packages/next/meta_index.json, Out file: esbuild/index.js
Meta file: packages/payload/meta_index.json, Out file: esbuild/index.js
Meta file: packages/payload/meta_shared.json, Out file: esbuild/exports/shared.js
Meta file: packages/richtext-lexical/meta_client.json, Out file: esbuild/exports/client_optimized/index.js
Meta file: packages/ui/meta_client.json, Out file: esbuild/exports/client_optimized/index.js
Meta file: packages/ui/meta_shared.json, Out file: esbuild/exports/shared_optimized/index.js
DetailsNext to the size is how much the size has increased or decreased compared with the base branch of this PR.
|
nathanlentz
force-pushed
the
override-access/plugins
branch
from
August 20, 2026 02:41
99a0867 to
d60e259
Compare
nathanlentz
force-pushed
the
override-access/templates
branch
from
August 20, 2026 02:41
46c0098 to
240f411
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds an explicit
overrideAccess: trueto every Local API call intemplates/thatpreviously relied on the default. 149 insertions across 50 files, in all 12 templates.
This is preparation for making
overrideAccessa required property, which lands laterin this stack. It is split out so that the breaking change itself stays small enough
to read.
This changes no behaviour
The Local API currently defaults
overrideAccesstotrue. Writing the value explicitlyproduces exactly what the default already produced.
An earlier plan for this PR was to hand-pick values, mostly
false, so the templates woulddemonstrate access-respecting queries. That was dropped. It would have made this the only
behaviour-changing PR in the middle of the stack, and 118 hand-chosen access-control
decisions is the least reviewable diff we could produce. Converting templates to
overrideAccess: falseplususeris worth doing as its own PR, where it gets reviewedas an access-control change rather than as a mechanical sweep.
websiteecommercewith-vercel-websitepluginblank,blank-tanstack,_template,with-postgres,with-vercel-postgres,with-vercel-mongodb,with-cloudflare-d1The three deletions are one-line object literals that became multi-line once the property
was added.
Verification
blank,blank-tanstack,ecommerceandwebsiteare workspace members that resolvepayloadto the local source, so they can be typechecked with the property made required.All four land exactly on their pre-existing error counts (2, 1, 9, 2), which confirms no
call site was missed.
The other eight templates pin a published
payloadversion and have no dependenciesinstalled, so they cannot be typechecked. Their call sites were enumerated directly from
the AST instead, and all are covered.