From 6cdb814138f68cd2550af6564ec90f6696733fa1 Mon Sep 17 00:00:00 2001 From: Ben Hardill Date: Thu, 31 Oct 2024 15:01:48 +0000 Subject: [PATCH] Check for project: not platform: in username Fixes acl failure for project nodes --- forge/comms/v2AuthRoutes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forge/comms/v2AuthRoutes.js b/forge/comms/v2AuthRoutes.js index 398d3d814c..4f3b9b0eae 100644 --- a/forge/comms/v2AuthRoutes.js +++ b/forge/comms/v2AuthRoutes.js @@ -104,7 +104,7 @@ module.exports = async function (app) { const topic = request.body.topic const action = request.body.action if ((username.startsWith('device:') || - username.startsWith('platform:') || + username.startsWith('project:') || username.startsWith('frontend:') || username === 'forge_platform') && !username.includes('@')) { const acc = action === 'subscribe' ? 1 : 2