From aeffbe203c3723cfde5b8825692c4a1a8680f0dc Mon Sep 17 00:00:00 2001 From: Mihail Hagiu <mihail.hagiu@thinslices.com> Date: Tue, 4 Dec 2018 15:57:50 +0200 Subject: [PATCH] feat(EditProfile): HE, author and reviewer can now edit their profiles --- packages/xpub-faraday/config/authsome-mode.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/xpub-faraday/config/authsome-mode.js b/packages/xpub-faraday/config/authsome-mode.js index c9df55d68..df9ecde41 100644 --- a/packages/xpub-faraday/config/authsome-mode.js +++ b/packages/xpub-faraday/config/authsome-mode.js @@ -235,7 +235,10 @@ async function applyAuthenticatedUserPolicy(user, operation, object, context) { }) } - if (get(object, 'type') === 'user' && get(object, 'id') === user.id) { + if ( + get(object, 'current.type') === 'user' && + get(object, 'current.id') === user.id + ) { return { filter: body => pick(body, [ -- GitLab