Skip to content

Commit

Permalink
feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelSquires committed May 30, 2024
1 parent 24a0071 commit 4469b29
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions synapse/lib/layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -4101,14 +4101,13 @@ async def iterLayerAddPerms(self):
if form is None:
continue

for _ in self.layrslab.scanByPref(abrv, db=self.byform):
yield ('node', 'add', form)
break

if prop:
for _ in self.layrslab.scanByPref(abrv, db=self.byprop):
for _ in self.layrslab.scanByPref(abrv, db=self.byprop):
if prop:
yield ('node', 'prop', 'set', f'{form}:{prop}')
break
else:
yield ('node', 'add', form)

break

# tags
# NB: tag perms should be yielded for every leaf on every node in the layer
Expand Down

0 comments on commit 4469b29

Please sign in to comment.