mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-30 17:32:38 +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(googleBrews && googleBrews.length > 0) {
|
||||
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);
|
||||
if(match !== -1) {
|
||||
brew.googleId = googleBrews[match].googleId;
|
||||
|
||||
Reference in New Issue
Block a user