UNPKG

@websolutespa/payload-plugin-bowl

Version:

Bowl PayloadCms plugin of the BOM Repository

29 lines (28 loc) 832 B
import { isAdmin, isRole } from '../core'; import { roles } from '../types'; export const LegalNotice = (options)=>({ type: 'withCollection', slug: options.slug.legalNotice, versions: true, admin: { group: options.group.gdpr }, access: { create: isAdmin, read: isRole(roles.Admin, roles.Contributor, roles.Editor, roles.Guest, roles.User), update: isRole(roles.Admin, roles.Contributor, roles.Editor), delete: isAdmin }, fields: [ { type: 'withId' }, { name: 'text', label: 'Text', type: 'withRichText', localized: true } ] }); //# sourceMappingURL=LegalNotice.js.map