From b4f355f713c51f9190c422075e754cad345cf2bc Mon Sep 17 00:00:00 2001 From: kirrg001 Date: Fri, 26 Jan 2018 00:35:39 +0100 Subject: [PATCH] Removed the usages of `this.forge(null, {context: options.context})` no issue - refs https://github.com/TryGhost/Ghost/commit/fe461da110c6ae9ad5a3fe9c399a44b478c8d5d0 - the access plugin was removed - no need to pass `context` as parameter for `.forge` --- core/server/models/base/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/server/models/base/index.js b/core/server/models/base/index.js index 0396a99255..badd901b25 100644 --- a/core/server/models/base/index.js +++ b/core/server/models/base/index.js @@ -496,7 +496,7 @@ ghostBookshelf.Model = ghostBookshelf.Model.extend({ options = this.filterOptions(options, 'findAll'); options.withRelated = _.union(options.withRelated, options.include); - var itemCollection = this.forge(null, {context: options.context}); + var itemCollection = this.forge(); // transforms fictive keywords like 'all' (status:all) into correct allowed values if (this.processOptions) { @@ -540,7 +540,7 @@ ghostBookshelf.Model = ghostBookshelf.Model.extend({ options = options || {}; var self = this, - itemCollection = this.forge(null, {context: options.context}), + itemCollection = this.forge(), tableName = _.result(this.prototype, 'tableName'), requestedColumns = options.columns;