Skip to content

Commit

Permalink
Merge pull request #4720 from FlowFuse/broker-v2-acl-check
Browse files Browse the repository at this point in the history
Check for project: not platform: in username
  • Loading branch information
hardillb authored Oct 31, 2024
2 parents 53bd98f + 6cdb814 commit 5b509c8
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 5b509c8

Please sign in to comment.