mirror of
https://github.com/urbit/shrub.git
synced 2024-12-22 02:11:38 +03:00
contact-push-hook: kick on set-private, share on set-public
This commit is contained in:
parent
f0e49770a5
commit
e2994ec7fa
@ -111,7 +111,19 @@
|
|||||||
|= =vase
|
|= =vase
|
||||||
^- [(list card) agent]
|
^- [(list card) agent]
|
||||||
=/ =update:store !<(update:store vase)
|
=/ =update:store !<(update:store vase)
|
||||||
?. ?=(%disallow -.update) [~ this]
|
?+ -.update [~ this]
|
||||||
:_ this
|
%disallow
|
||||||
[%give %kick ~[resource+(en-path:res [our.bowl %''])] ~]~
|
:_ this
|
||||||
|
[%give %kick ~[resource+(en-path:res [our.bowl %''])] ~]~
|
||||||
|
::
|
||||||
|
%set-public
|
||||||
|
:_ this
|
||||||
|
?. public.update
|
||||||
|
[%give %kick ~[resource+(en-path:res [our.bowl %''])] ~]~
|
||||||
|
%+ murn ~(tap in scry-groups:grp)
|
||||||
|
|= rid=res
|
||||||
|
?: =(our.bowl entity.rid) ~
|
||||||
|
?. (is-managed:grp rid) ~
|
||||||
|
`(poke-self:pass:io contact-share+!>([%share entity.rid]))
|
||||||
|
==
|
||||||
--
|
--
|
||||||
|
Loading…
Reference in New Issue
Block a user