Skip to content

Commit

Permalink
minor fix for issue VOLTTRON#3110
Browse files Browse the repository at this point in the history
  • Loading branch information
schandrika committed Aug 25, 2023
1 parent 451816c commit 86628db
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions volttron/platform/vip/agent/subsystems/rpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,9 +304,9 @@ def _add_auth_check(self, method, required_caps):
def checked_method(*args, **kwargs):
user = str(self.context.vip_message.user)
if self._message_bus == "rmq":
# When we address issue #2107 external platform user should
# have instance name also included in username.
user = user.split(".")[1]
# remove platform instance name. rmq user names are of the format <instance name>.<user>
user = user[user.index(".")+1:]

user_capabilites = self._owner.vip.auth.get_capabilities(user)
_log.debug("**user caps is: {}".format(user_capabilites))
if user_capabilites:
Expand Down

0 comments on commit 86628db

Please sign in to comment.