@websolutespa/payload-plugin-bowl
Version:
Bowl PayloadCms plugin of the BOM Repository
44 lines (43 loc) • 958 B
JavaScript
import { isRole, options } from '@websolutespa/payload-plugin-bowl';
const { slug, roles } = options;
export const RegisterAction = {
type: 'withAction',
slug: 'register_action',
admin: {
defaultColumns: [
'email',
'firstName',
'lastName'
]
},
access: {
read: isRole(roles.Admin, roles.Contributor)
},
custom: {
createEndUser: 'user'
},
fields: [
{
name: 'password',
type: 'withText',
access: {
read: ()=>false
}
},
{
name: 'firstName',
type: 'withText',
custom: {
updateEndUser: true
}
},
{
name: 'lastName',
type: 'withText',
custom: {
updateEndUser: true
}
}
]
};
//# sourceMappingURL=RegisterAction.js.map