Skip to content

Commit a05b465

Browse files
committed
fix queue_prefix
1 parent 9c42cc1 commit a05b465

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

OpenFlow/src/Messages/Message.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -762,15 +762,16 @@ export class Message {
762762
if (_id === null || _id === undefined || _id === "") _id = cli.user._id;
763763
var namespace = Config.namespace;
764764
var hostname = Config.nodered_domain_schema.replace("$nodered_id$", name);
765-
var queue_prefix: string = "";
766-
if (Config.force_queue_prefix) {
767-
queue_prefix = cli.user.username;
768-
}
769765

770766
var nodereduser = await User.FindById(_id, cli.jwt);
771767
var tuser: TokenUser = new TokenUser(nodereduser);
772768
var nodered_jwt: string = Crypt.createToken(tuser, Config.personalnoderedtoken_expires_in);
773769

770+
var queue_prefix: string = "";
771+
if (Config.force_queue_prefix) {
772+
queue_prefix = nodereduser.username;
773+
}
774+
774775
cli._logger.debug("[" + cli.user.username + "] ensure nodered role " + name + "noderedadmins");
775776
var noderedadmins = await User.ensureRole(cli.jwt, name + "noderedadmins", null);
776777
noderedadmins.addRight(nodereduser._id, nodereduser.username, [Rights.full_control]);

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.0.521
1+
0.0.522

0 commit comments

Comments
 (0)