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

Commit 59990a1

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

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
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: {

libs/db/collections/models/Users.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,9 +268,9 @@ export const Users: CollectionConfig = {
268268
},
269269
access: {
270270
admin: isOrganizerOrSponsor,
271-
read: isOrganizerOrSelf,
271+
read: () => true,
272272
create: authenticated,
273-
update: isOrganizer,
273+
update: authenticated,
274274
delete: isSuperAdmin,
275275
},
276276
// hooks: {

0 commit comments

Comments
 (0)