fix: update campaign access control to allow authenticated users
- Add read access rule allowing any logged-in user to view campaigns
This commit is contained in:
parent
1882a74066
commit
35d992e597
1 changed files with 1 additions and 0 deletions
|
|
@ -11,6 +11,7 @@ export const Campaigns: CollectionConfig = {
|
|||
create: isDeveloper,
|
||||
update: isDeveloper,
|
||||
delete: isDeveloper,
|
||||
read: ({ req }) => !!req.user,
|
||||
},
|
||||
fields: [
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue