25 lines
No EOL
711 B
TypeScript
25 lines
No EOL
711 B
TypeScript
import type { GlobalConfig } from 'payload'
|
|
|
|
export const Sprache: GlobalConfig = {
|
|
slug: 'sprache',
|
|
label: { de: 'Sprache', en: 'Language', hu: 'Nyelv' },
|
|
admin: { group: 'Donauschwaben', },
|
|
access: {
|
|
read: () => true,
|
|
update: ({ req }) => ['admin', 'editor'].includes(req.user?.role ?? ''),
|
|
},
|
|
fields: [
|
|
{
|
|
name: 'titel',
|
|
type: 'text',
|
|
localized: true,
|
|
label: { de: 'Titel', en: 'Title', hu: 'Cím' },
|
|
},
|
|
{
|
|
name: 'einleitung',
|
|
type: 'richText',
|
|
localized: true,
|
|
label: { de: 'Einleitung', en: 'Introduction', hu: 'Bevezetés' },
|
|
},
|
|
],
|
|
} |