mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-18 16:01:40 +03:00
666a616551
refs #5614 - change isPublicContext to detectPublicContext - behaviour now expands the context object out - this is a bit of a sideeffect, but this is the simplest change that makes it possible to use the context in the model layer without significant wider changes - add new access rules plugin - takes a context object as part of `forge()` & caches it on the model instance - provides helper functions for testing access rules later on
6 lines
152 B
JavaScript
6 lines
152 B
JavaScript
module.exports = {
|
|
accessRules: require('./access-rules'),
|
|
includeCount: require('./include-count'),
|
|
pagination: require('./pagination')
|
|
};
|