mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 13:54:35 +03:00
9369dd3bf7
- Pass permissions loading to buildObjectTypeHandlers to eliminate shared state - Load both app and user permissions to check - Check app permissions if present - Create apps table and App model - Move effectiveUserPermissions to permissions/effective - Change permissable interface to take context; user and app. - Add unit tests for app canThis checks and effective permissions
80 lines
1.8 KiB
JSON
80 lines
1.8 KiB
JSON
{
|
|
"core": {
|
|
"databaseVersion": {
|
|
"defaultValue": "003"
|
|
},
|
|
"dbHash": {
|
|
"defaultValue": null
|
|
},
|
|
"nextUpdateCheck": {
|
|
"defaultValue": null
|
|
},
|
|
"displayUpdateNotification": {
|
|
"defaultValue": null
|
|
}
|
|
},
|
|
"blog": {
|
|
"title": {
|
|
"defaultValue": "Ghost"
|
|
},
|
|
"description": {
|
|
"defaultValue": "Just a blogging platform."
|
|
},
|
|
"email": {
|
|
"defaultValue": "ghost@example.com",
|
|
"validations": {
|
|
"isNull": false,
|
|
"isEmail": true
|
|
}
|
|
},
|
|
"logo": {
|
|
"defaultValue": ""
|
|
},
|
|
"cover": {
|
|
"defaultValue": ""
|
|
},
|
|
"defaultLang": {
|
|
"defaultValue": "en_US",
|
|
"validations": {
|
|
"isNull": false
|
|
}
|
|
},
|
|
"postsPerPage": {
|
|
"defaultValue": "6",
|
|
"validations": {
|
|
"isNull": false,
|
|
"isInt": true,
|
|
"isLength": [0, 1000]
|
|
}
|
|
},
|
|
"forceI18n": {
|
|
"defaultValue": "true",
|
|
"validations": {
|
|
"isNull": false,
|
|
"isIn": [["true", "false"]]
|
|
}
|
|
},
|
|
"permalinks": {
|
|
"defaultValue": "/:slug/",
|
|
"validations": {
|
|
"matches": "^(\/:?[a-z0-9_-]+){1,5}\/$",
|
|
"matches": "(:id|:slug|:year|:month|:day)",
|
|
"notContains": "/ghost/"
|
|
}
|
|
}
|
|
},
|
|
"theme": {
|
|
"activeTheme": {
|
|
"defaultValue": "casper"
|
|
}
|
|
},
|
|
"app": {
|
|
"activeApps": {
|
|
"defaultValue": "[]"
|
|
},
|
|
"installedApps": {
|
|
"defaultValue": "[]"
|
|
}
|
|
}
|
|
}
|