Skip to content

Commit 2bd0c1f

Browse files
committed
docs(readme): nest access/admin under overrides for dubCollection and dubTagCollection
1 parent 44e3948 commit 2bd0c1f

File tree

1 file changed

+17
-14
lines changed

1 file changed

+17
-14
lines changed

README.md

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -37,22 +37,26 @@ export default buildConfig({
3737

3838
// Optional: overrides of dubCollection
3939
dubCollection: {
40-
access: {
41-
read: ({ req }) => !!req.user,
42-
create: ({ req }) => !!req.user,
43-
},
44-
admin: {
45-
group: 'Marketing',
46-
defaultColumns: ['shortLink', 'externalId'],
40+
overrides: {
41+
access: {
42+
read: ({ req }) => !!req.user,
43+
create: ({ req }) => !!req.user,
44+
},
45+
admin: {
46+
group: 'Marketing',
47+
defaultColumns: ['shortLink', 'externalId'],
48+
},
4749
},
4850
},
4951
dubTagCollection: {
50-
access: {
51-
read: ({ req }) => !!req.user,
52-
},
53-
admin: {
54-
group: 'Marketing',
55-
defaultColumns: ['name', 'color'],
52+
overrides: {
53+
access: {
54+
read: ({ req }) => !!req.user,
55+
},
56+
admin: {
57+
group: 'Marketing',
58+
defaultColumns: ['name', 'color'],
59+
},
5660
},
5761
},
5862
}),
@@ -91,4 +95,3 @@ For support or inquiries:
9195

9296
Rubix Studios Pty. Ltd.
9397
[https://rubixstudios.com.au](https://rubixstudios.com.au)
94-

0 commit comments

Comments
 (0)