Ghost/core/server/models
Fabien O'Carroll 23e9a02ff1
Updated Post and Author model permissible method (#9966)
refs #9865

Both the Post and the Author model implement the permissible method,
however the Post model does not abide by the signature of the
permissible method and add their own parameter "result" at the end.

This makes changes to the permissible method difficult as we have to
take into account multiple signatures.

This changes the Post model permissible method to the correct signature,
but still retains the current functionality. This will make it easier to
break up future permission related PR's so they can be reviwed easier
and faster!
2018-10-09 18:03:13 +07:00
..
base Added check for orderDefaultOptions in base model (#9941) 2018-10-03 16:27:33 +02:00
plugins 🐛Fixed count.posts respecting co authors (#9830) 2018-08-30 17:05:29 +01:00
relations Updated Post and Author model permissible method (#9966) 2018-10-09 18:03:13 +07:00
accesstoken.js 🔥 Drop Node v4 Support 2018-05-01 14:06:18 +02:00
api-key.js Added refreshSecret method to ApiKey model (#9947) 2018-10-05 15:51:13 +07:00
app-field.js Misc cleanup: moving files & naming functions 2015-06-15 09:43:19 +01:00
app-setting.js Misc cleanup: moving files & naming functions 2015-06-15 09:43:19 +01:00
app.js Updated permittedOptions to correctly call super 2018-09-21 12:15:29 +02:00
client-trusted-domain.js Add table columns for OAuth 2015-09-02 13:39:22 +01:00
client.js Updated permittedOptions to correctly call super 2018-09-21 12:15:29 +02:00
index.js Set up schema and models for API Key authentication (#9904) 2018-10-02 17:46:38 +01:00
integration.js Set up schema and models for API Key authentication (#9904) 2018-10-02 17:46:38 +01:00
invite.js Moved custom invite permission to permissible fn 2018-10-05 15:38:14 +02:00
permission.js 🔥 Drop Node v4 Support 2018-05-01 14:06:18 +02:00
post.js Updated Post and Author model permissible method (#9966) 2018-10-09 18:03:13 +07:00
refreshtoken.js Switched to eslint-plugin-ghost (#9835) 2018-09-17 20:49:30 +02:00
role.js Set up schema and models for API Key authentication (#9904) 2018-10-02 17:46:38 +01:00
session.js Created Session Model (#9909) 2018-09-27 14:31:39 +02:00
settings.js Added session_secret setting to schema (#9953) 2018-10-05 12:25:51 +01:00
subscriber.js Updated permittedOptions to correctly call super 2018-09-21 12:15:29 +02:00
tag.js Refactor URL generation from models (#9917) 2018-10-03 15:44:30 +02:00
user.js Added protection for ownership transfer 2018-10-06 21:50:31 +02:00
webhook.js 🔥 Drop Node v4 Support 2018-05-01 14:06:18 +02:00