aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pb_migrations/1781251243_updated_users.js22
1 files changed, 22 insertions, 0 deletions
diff --git a/pb_migrations/1781251243_updated_users.js b/pb_migrations/1781251243_updated_users.js
new file mode 100644
index 0000000..75a5a8c
--- /dev/null
+++ b/pb_migrations/1781251243_updated_users.js
@@ -0,0 +1,22 @@
+/// <reference path="../pb_data/types.d.ts" />
+migrate((app) => {
+ const collection = app.findCollectionByNameOrId("_pb_users_auth_")
+
+ // update collection data
+ unmarshal({
+ "listRule": "",
+ "viewRule": ""
+ }, collection)
+
+ return app.save(collection)
+}, (app) => {
+ const collection = app.findCollectionByNameOrId("_pb_users_auth_")
+
+ // update collection data
+ unmarshal({
+ "listRule": "id = @request.auth.id",
+ "viewRule": "id = @request.auth.id"
+ }, collection)
+
+ return app.save(collection)
+})
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage