From 2e305d56361398422a8044bf2ca642e6822ebf50 Mon Sep 17 00:00:00 2001 From: Charlie Humphreys Date: Wed, 16 Nov 2022 22:37:59 -0600 Subject: [PATCH] remove authorship piece from this PR --- server/homebrew.api.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/server/homebrew.api.js b/server/homebrew.api.js index 563926f01..ec8e438fa 100644 --- a/server/homebrew.api.js +++ b/server/homebrew.api.js @@ -43,9 +43,6 @@ const getBrew = (accessType, fetchGoogle = true)=>{ } }); stub = stub?.toObject(); - if(stub?.authors && !stub?.authors.includes(req.account.username)) { - throw 'Current logged in user does not have access to this brew.'; - } // If there is a google id, try to find the google brew if(fetchGoogle && (googleId || stub?.googleId)) {