Hello from MCP server
/// <reference path="../pb_data/types.d.ts" />
migrate((app) => {
const collection = app.findCollectionByNameOrId("_pb_users_auth_")
// update collection data
unmarshal({
"viewRule": "id = @request.auth.id ||\n@request.auth.activeOrg = activeOrg ||\nprofiles.org.id = @request.auth.activeOrg\n"
}, collection)
return app.save(collection)
}, (app) => {
const collection = app.findCollectionByNameOrId("_pb_users_auth_")
// update collection data
unmarshal({
"viewRule": "id = @request.auth.id || @request.auth.activeOrg = activeOrg"
}, collection)
return app.save(collection)
})