Skip to content

Commit

Permalink
Update src/lavinmq/mqtt/connection_factory.cr
Browse files Browse the repository at this point in the history
Co-authored-by: Jon Börjesson <jon@84codes.com>
  • Loading branch information
kickster97 and spuun authored Feb 4, 2025
1 parent f9ae6c9 commit f97360e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lavinmq/mqtt/connection_factory.cr
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ module LavinMQ
user = @users[username]?
return unless user
return unless user.password && user.password.try(&.verify(String.new(password)))
has_vhost_permissions = user.try &.permissions.has_key?(@config.default_mqtt_vhost)
has_vhost_permissions = user.try &.permissions.has_key?(vhost)
return unless has_vhost_permissions
broker = @brokers[vhost]?
return unless broker
Expand Down

0 comments on commit f97360e

Please sign in to comment.