Commit 4bee20e6 authored by Nicolas Giard's avatar Nicolas Giard

fix: setup groups crash

parent 771935ee
...@@ -211,15 +211,15 @@ module.exports = () => { ...@@ -211,15 +211,15 @@ module.exports = () => {
const adminGroup = await WIKI.models.groups.query().insert({ const adminGroup = await WIKI.models.groups.query().insert({
name: 'Administrators', name: 'Administrators',
permissions: JSON.stringify(['manage:system']), permissions: JSON.stringify(['manage:system']),
pageRules: [], pageRules: JSON.stringify([]),
isSystem: true isSystem: true
}) })
const guestGroup = await WIKI.models.groups.query().insert({ const guestGroup = await WIKI.models.groups.query().insert({
name: 'Guests', name: 'Guests',
permissions: JSON.stringify(['read:pages']), permissions: JSON.stringify(['read:pages']),
pageRules: [ pageRules: JSON.stringify([
{ id: 'guest', roles: ['READ', 'AS_READ', 'CM_READ'], match: 'START', deny: false, path: '', locales: [] } { id: 'guest', roles: ['READ', 'AS_READ', 'CM_READ'], match: 'START', deny: false, path: '', locales: [] }
], ]),
isSystem: true isSystem: true
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment