UNPKG

@websolutespa/payload-plugin-bowl

Version:

Bowl PayloadCms plugin of the BOM Repository

21 lines (20 loc) 524 B
import { deepMerge } from '@websolutespa/payload-utils'; import { options } from '../../options'; import { isAdmin } from '../access'; export const TenantsDefault = { name: 'tenants', type: 'relationship', hasMany: true, relationTo: [ options.slug.market ], access: { create: isAdmin, update: isAdmin } }; export const withTenants = (srcOptions = {})=>{ const field = deepMerge(TenantsDefault, srcOptions); return field; }; //# sourceMappingURL=withTenants.js.map