0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-17 23:44:39 -05:00
ghost/core/server/models
Hannah Wolfe 32125c2f46 Filter options passed to toJSON
fixes #5177

- we now pass API/model options directly to toJSON, which is unsafe as these options haven't always been filtered before they are passed.
- this fix adds a filter so that toJSON only uses the options it needs
- additionally, rename the 'name' option to something more specific to prevent clashes
2015-04-22 20:20:27 +01:00
..
accesstoken.js
app-field.js
app-setting.js
app.js
base.js Filter options passed to toJSON 2015-04-22 20:20:27 +01:00
basetoken.js
client.js
index.js
permission.js
post.js Refactor to remove author.email from API 2015-04-17 22:27:04 +01:00
refreshtoken.js
role.js
settings.js
tag.js Refactor to remove author.email from API 2015-04-17 22:27:04 +01:00
user.js Refactor to remove author.email from API 2015-04-17 22:27:04 +01:00