assembleDebug, testDebugUnitTest, and recordPaparazziDebug all pass. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016bThmkmyUUdqQpy3MXFFe5
27 lines
684 B
JavaScript
27 lines
684 B
JavaScript
/// <reference path="../pb_data/types.d.ts" />
|
|
migrate((app) => {
|
|
const collection = app.findCollectionByNameOrId("_pb_users_auth_")
|
|
|
|
// update collection data
|
|
unmarshal({
|
|
"createRule": null,
|
|
"deleteRule": null,
|
|
"listRule": "@request.auth.id != \"\"",
|
|
"viewRule": "@request.auth.id != \"\""
|
|
}, collection)
|
|
|
|
return app.save(collection)
|
|
}, (app) => {
|
|
const collection = app.findCollectionByNameOrId("_pb_users_auth_")
|
|
|
|
// update collection data
|
|
unmarshal({
|
|
"createRule": "",
|
|
"deleteRule": "id = @request.auth.id",
|
|
"listRule": "id = @request.auth.id",
|
|
"viewRule": "id = @request.auth.id"
|
|
}, collection)
|
|
|
|
return app.save(collection)
|
|
})
|