From 5d2ab1988123ff14c6baa7a3cdc3ddfa35e3da44 Mon Sep 17 00:00:00 2001 From: Katharina Irrgang Date: Mon, 17 Dec 2018 14:16:39 +0100 Subject: [PATCH] Removed `invitedBy` from admin API: invitation endpoint (#10291) refs #10286 - we want to deprecate all `x_by` fields - we would like to get rid of all usages to be able to easily remove the fields in the future - `invitedBy` is not used in the admin client --- core/server/api/v0.1/authentication.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/core/server/api/v0.1/authentication.js b/core/server/api/v0.1/authentication.js index 5541488b73..4414e5b8b7 100644 --- a/core/server/api/v0.1/authentication.js +++ b/core/server/api/v0.1/authentication.js @@ -466,10 +466,7 @@ authentication = { return {invitation: [{valid: false}]}; } - return models.User.findOne({id: invite.get('created_by')}) - .then((user) => { - return {invitation: [{valid: true, invitedBy: user.get('name')}]}; - }); + return {invitation: [{valid: true}]}; }); }