Added protecting hooks

This commit is contained in:
2026-09-25 12:42:38 +02:00
parent 9a18434f4a
commit b82ef82f50
33 changed files with 733 additions and 6 deletions
+2 -1
View File
@@ -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',
}
}