fix: setup groups crash

This commit is contained in:
Nicolas Giard 2018-12-30 13:14:05 -05:00
parent 771935ee68
commit 4bee20e664

View File

@ -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
})