fix: enable overrideAccess=true for public Payload repository reads
All public pages (site settings, header, pages, articles) now bypass Payload's access control checks when reading, as they should be publicly accessible without authentication. This fixes 403 Forbidden errors on homepage and article rendering.
This commit is contained in:
@@ -35,7 +35,7 @@ describe("PayloadArticlesRepository", () => {
|
||||
collection: "articles",
|
||||
where: { slug: { equals: "hello" } },
|
||||
limit: 1,
|
||||
overrideAccess: false,
|
||||
overrideAccess: true,
|
||||
});
|
||||
expect(result?.id).toBe("p-123");
|
||||
expect(result?.slug).toBe("hello");
|
||||
|
||||
Reference in New Issue
Block a user