diff --git a/packages/pockethost/src/mothership-app/pb_migrations/1753355624_updated_users.js b/packages/pockethost/src/mothership-app/pb_migrations/1753355624_updated_users.js new file mode 100644 index 00000000..5ad23a46 --- /dev/null +++ b/packages/pockethost/src/mothership-app/pb_migrations/1753355624_updated_users.js @@ -0,0 +1,16 @@ +/// +migrate((db) => { + const dao = new Dao(db) + const collection = dao.findCollectionByNameOrId("systemprofiles0") + + collection.updateRule = null + + return dao.saveCollection(collection) +}, (db) => { + const dao = new Dao(db) + const collection = dao.findCollectionByNameOrId("systemprofiles0") + + collection.updateRule = "id = @request.auth.id" + + return dao.saveCollection(collection) +})