chore: do not allow modifying user document, so that people can't reset the deployed demo password

This commit is contained in:
Alessio Gravili 2024-04-10 22:35:05 -04:00
parent b6c6c267d9
commit 0ee6c31eda
No known key found for this signature in database
GPG Key ID: 4343AC3FB47BC3B4

View File

@ -32,6 +32,15 @@ export default buildConfig({
//editor: slateEditor({}),
editor: lexicalEditor(),
collections: [
{
slug: 'users',
auth: true,
access: {
delete: () => false,
update: () => false,
},
fields: [],
},
{
slug: 'pages',
admin: {