Merge branch 'm/permission-hook-state-hygiene' (#2335)

* origin/m/permission-hook-state-hygiene:
  permission-hook: clean up access-control on %delete

Signed-off-by: Jared Tobin <jared@tlon.io>
This commit is contained in:
Jared Tobin 2020-02-24 13:43:57 +04:00
commit 24ec14d53f
No known key found for this signature in database
GPG Key ID: 0E4647D58F8A69E4

View File

@ -195,7 +195,15 @@
%delete %delete
?. (~(has by synced) path.diff) ?. (~(has by synced) path.diff)
[~ state] [~ state]
:_ state(synced (~(del by synced) path.diff)) =/ control=(unit path)
=+ (~(got by synced) path.diff)
?. =(our.bowl ship) ~
`access-control
:_ %_ state
synced (~(del by synced) path.diff)
access-control ?~ control access-control
(~(del ju access-control) u.control path.diff)
==
:_ ~ :_ ~
:* %pass :* %pass
[%permission path.diff] [%permission path.diff]