fix permisions and new data

This commit is contained in:
2024-08-31 07:15:52 +02:00
parent 0a771e0615
commit 8ddc1fd278
3 changed files with 16 additions and 0 deletions

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,16 @@
/// <reference path="../pb_data/types.d.ts" />
migrate((db) => {
const dao = new Dao(db)
const collection = dao.findCollectionByNameOrId("0f66m7amfl25mue")
collection.viewRule = "field = @request.auth.id"
return dao.saveCollection(collection)
}, (db) => {
const dao = new Dao(db)
const collection = dao.findCollectionByNameOrId("0f66m7amfl25mue")
collection.viewRule = null
return dao.saveCollection(collection)
})