From 1bbca362b45a2518773e76b646b19c7ac9101e13 Mon Sep 17 00:00:00 2001 From: pierreburgy Date: Thu, 19 Nov 2015 22:54:54 +0100 Subject: [PATCH] Fix grant config --- lib/configuration/hooks/grant/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/configuration/hooks/grant/index.js b/lib/configuration/hooks/grant/index.js index fb67ffa9ca..e68a84c3b9 100644 --- a/lib/configuration/hooks/grant/index.js +++ b/lib/configuration/hooks/grant/index.js @@ -28,13 +28,13 @@ module.exports = function (strapi) { */ initialize: function (cb) { - _.defaultsDeep(strapi.config.grant, { + _.defaultsDeep(strapi.api.user.config.grant, { server: { protocol: strapi.config.ssl ? 'https' : 'http', host: strapi.config.host + ':' + strapi.config.port } }); - const grant = new Grant(strapi.config.grant); + const grant = new Grant(strapi.api.user.config.grant); strapi.app.use(strapi.middlewares.mount(grant));