Added protecting hooks
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import type { GlobalConfig } from 'payload'
|
||||
|
||||
import { notificationsFields } from './fields.js'
|
||||
|
||||
/**
|
||||
@@ -9,10 +10,10 @@ import { notificationsFields } from './fields.js'
|
||||
export function buildNotifications(): GlobalConfig {
|
||||
return {
|
||||
slug: 'notifications',
|
||||
label: 'Notifications',
|
||||
access: {
|
||||
read: () => true, // texts are public-facing (shown to end users)
|
||||
},
|
||||
fields: notificationsFields,
|
||||
label: 'Notifications',
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user