0
0
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:
G.Ambatte
2025-11-10 06:05:58 +00:00
parent 35d93582d7
commit de85c84685

View File

@@ -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;