fix permisions and new data
This commit is contained in:
1 parent
0a771e0615
commit
8ddc1fd278
3 files changed
+16
No files matched your search
@@ -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)
|
||||
})
|
||||
Reference in new issue
Block a user