diff --git a/synapse/lib/hiveauth.py b/synapse/lib/hiveauth.py index 13f74802d7..ecfaf0f267 100644 --- a/synapse/lib/hiveauth.py +++ b/synapse/lib/hiveauth.py @@ -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) @@ -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)