From 4bee20e664d4f3858e29bb48f03536ff5e23ec62 Mon Sep 17 00:00:00 2001 From: Nicolas Giard Date: Sun, 30 Dec 2018 13:14:05 -0500 Subject: [PATCH] fix: setup groups crash --- server/setup.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/setup.js b/server/setup.js index e52e401a..961429ad 100644 --- a/server/setup.js +++ b/server/setup.js @@ -211,15 +211,15 @@ module.exports = () => { const adminGroup = await WIKI.models.groups.query().insert({ name: 'Administrators', permissions: JSON.stringify(['manage:system']), - pageRules: [], + pageRules: JSON.stringify([]), isSystem: true }) const guestGroup = await WIKI.models.groups.query().insert({ name: 'Guests', permissions: JSON.stringify(['read:pages']), - pageRules: [ + pageRules: JSON.stringify([ { id: 'guest', roles: ['READ', 'AS_READ', 'CM_READ'], match: 'START', deny: false, path: '', locales: [] } - ], + ]), isSystem: true })