Skip to content

Commit

Permalink
Check for project: not platform: in username
Browse files Browse the repository at this point in the history
Fixes acl failure for project nodes
  • Loading branch information
hardillb committed Oct 31, 2024
1 parent 53bd98f commit 6cdb814
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion forge/comms/v2AuthRoutes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6cdb814

Please sign in to comment.