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,
|
create: isDeveloper,
|
||||||
update: isDeveloper,
|
update: isDeveloper,
|
||||||
delete: isDeveloper,
|
delete: isDeveloper,
|
||||||
|
read: ({ req }) => !!req.user,
|
||||||
},
|
},
|
||||||
fields: [
|
fields: [
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue