Skip to content

Commit

Permalink
BUG: Do not return heavy objects from user:add and role:add nexus han…
Browse files Browse the repository at this point in the history
…dlers (#3483)
  • Loading branch information
vEpiphyte authored Jan 3, 2024
1 parent 1ebaa71 commit 3da2cdc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions synapse/lib/hiveauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ async def _addUser(self, iden, name):

user = self.usersbyname.get(name)
if user is not None:
return user
return

node = await self.node.open(('users', iden))
await node.set(name)
Expand All @@ -517,7 +517,7 @@ async def _addRole(self, iden, name):

role = self.rolesbyname.get(name)
if role is not None:
return role
return

node = await self.node.open(('roles', iden))
await node.set(name)
Expand Down

0 comments on commit 3da2cdc

Please sign in to comment.