Skip to content
This repository was archived by the owner on Oct 7, 2025. It is now read-only.

Commit 8886cfc

Browse files
committed
fix(website): deployment failing due to media nad brands read level access control for APIs
1 parent 01afd85 commit 8886cfc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

libs/db/collections/Brands.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const socialMediaFields = SOCIAL_MEDIA_PLATFORMS.map(({ key, label,
5858
export const Brands: CollectionConfig = {
5959
slug: 'brands',
6060
access: {
61-
read: anyone,
61+
read: () => true,
6262
create: isSuperAdmin,
6363
update: isOrganizer || isSuperAdmin,
6464
delete: isSuperAdmin,

libs/db/collections/models/Media.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
export const Media: CollectionConfig = {
1111
slug: 'media',
1212
access: {
13-
read: anyone,
13+
read: () => true,
1414
update: isOrganizer || isSuperAdmin,
1515
},
1616
admin: {

0 commit comments

Comments
 (0)