From 60777ac7fba9b36a5bd2df576114a396311560dd Mon Sep 17 00:00:00 2001 From: "Fabien \"egg\" O'Carroll" Date: Tue, 25 Jan 2022 15:44:07 +0200 Subject: [PATCH] Cleaned up Products API add & edit refs https://github.com/TryGhost/Team/issues/1291 This is cleanup from the initial implementation. --- core/server/api/canary/products.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/server/api/canary/products.js b/core/server/api/canary/products.js index c6f680efa8..37847b5a61 100644 --- a/core/server/api/canary/products.js +++ b/core/server/api/canary/products.js @@ -78,7 +78,7 @@ module.exports = { name: {required: true} } }, - permissions: false, + permissions: true, async query(frame) { const model = await membersService.api.productRepository.create( frame.data, @@ -101,7 +101,7 @@ module.exports = { } } }, - permissions: false, + permissions: true, async query(frame) { const model = await membersService.api.productRepository.update( frame.data,