From e8337e65b6d61ad77a52643fbf49e2b41544f65b Mon Sep 17 00:00:00 2001 From: Mihail Hagiu <mihail.hagiu@thinslices.com> Date: Tue, 11 Dec 2018 15:38:38 +0200 Subject: [PATCH] fix(authsome-mode): EiC check made on fragment instead of collection --- packages/xpub-faraday/config/authsome-mode.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/xpub-faraday/config/authsome-mode.js b/packages/xpub-faraday/config/authsome-mode.js index 936b11dea..7055b23df 100644 --- a/packages/xpub-faraday/config/authsome-mode.js +++ b/packages/xpub-faraday/config/authsome-mode.js @@ -378,7 +378,7 @@ async function applyEditorInChiefPolicy(user, operation, object, context) { } } if (operation === 'PATCH') { - if (get(object, 'current.type') === 'collection') { + if (get(object, 'current.type') === 'fragment') { return false } } -- GitLab