mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-16 06:02:41 +00:00
Remove permissionsCheck from brew listing
This commit is contained in:
@@ -319,9 +319,6 @@ app.get('/user/:username', dbCheck, async (req, res, next)=>{
|
|||||||
// If stub matches file from Google, use Google metadata over stub metadata
|
// If stub matches file from Google, use Google metadata over stub metadata
|
||||||
if(googleBrews && googleBrews.length > 0) {
|
if(googleBrews && googleBrews.length > 0) {
|
||||||
for (const brew of brews.filter((brew)=>brew.googleId)) {
|
for (const brew of brews.filter((brew)=>brew.googleId)) {
|
||||||
const permissionCheck = await GoogleActions.checkPermissions(auth, brew);
|
|
||||||
brew.permissionCheck = permissionCheck;
|
|
||||||
|
|
||||||
const match = googleBrews.findIndex((b)=>b.editId === brew.editId);
|
const match = googleBrews.findIndex((b)=>b.editId === brew.editId);
|
||||||
if(match !== -1) {
|
if(match !== -1) {
|
||||||
brew.googleId = googleBrews[match].googleId;
|
brew.googleId = googleBrews[match].googleId;
|
||||||
|
|||||||
Reference in New Issue
Block a user