Ghost/core/test/unit
Hannah Wolfe 666a616551 Add access rules bookshelf plugin
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
2015-11-16 12:24:01 +00:00
..
controllers/frontend Don't use api to lookup theme in frontend controller 2015-10-30 19:02:06 +00:00
middleware Check client is enabled before auth 2015-11-04 16:59:56 +00:00
models_plugins Add access rules bookshelf plugin 2015-11-16 12:24:01 +00:00
server_helpers Add meta tags for client_id & client_secret 2015-11-04 16:39:39 +00:00
api_utils_spec.js Add access rules bookshelf plugin 2015-11-16 12:24:01 +00:00
apps_spec.js Add jscs task to grunt file and clean up files to adhere to jscs rules. 2014-09-17 21:44:29 -04:00
config_spec.js Test support for various URL schemes 2015-09-27 10:31:49 +01:00
error_handling_spec.js Public API 2015-10-22 15:28:47 +02:00
filters_spec.js Add jscs task to grunt file and clean up files to adhere to jscs rules. 2014-09-17 21:44:29 -04:00
importer_spec.js Rename error.type to error.errorType 2015-04-22 22:29:45 +02:00
mail_spec.js Email error message cleanup 2015-10-16 12:07:09 +02:00
migration_spec.js Maintain tag order for posts 2015-09-02 16:39:34 +01:00
permissions_spec.js deps: grunt-jscs@2.1.0 2015-10-12 19:21:16 +01:00
rss_spec.js Switch RSS to use new filter param 2015-10-27 10:00:51 +00:00
server_helpers_index_spec.js Cleans up HTML data attributes on body in default.hbs 2014-11-29 17:09:43 +01:00
server_helpers_template_spec.js refactors the frontend controller 2015-05-05 07:35:08 -05:00
server_spec.js Add jscs task to grunt file and clean up files to adhere to jscs rules. 2014-09-17 21:44:29 -04:00
server_utils_spec.js Make read-directory ignore invalid package.json files 2015-10-28 15:37:52 +01:00
showdown_client_integrated_spec.js Upgrade grunt-jscs to fix whitespace linting. 2015-04-30 16:14:19 -05:00
sitemap_spec.js Refactor sitemaps to use centralised events 2015-04-05 19:32:18 +01:00
storage_local-file-store_spec.js Use extends correctly & consistently 2015-06-25 19:56:27 +01:00
utils_pipeline_spec.js Pipeline util tests, clean & fix 2015-11-03 09:14:44 +00:00
xmlrpc_spec.js Refactor sitemaps to use centralised events 2015-04-05 19:32:18 +01:00