mirror of
https://github.com/urbit/shrub.git
synced 2024-12-24 20:47:27 +03:00
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:
commit
24ec14d53f
@ -195,7 +195,15 @@
|
||||
%delete
|
||||
?. (~(has by synced) path.diff)
|
||||
[~ 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
|
||||
[%permission path.diff]
|
||||
|
Loading…
Reference in New Issue
Block a user