mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-02 07:06:41 +03:00
Merge pull request #4421 from urbit/la/set-public
contact-push-hook: kick on set-private, share on set-public
This commit is contained in:
commit
b29c9639d7
@ -111,7 +111,19 @@
|
||||
|= =vase
|
||||
^- [(list card) agent]
|
||||
=/ =update:store !<(update:store vase)
|
||||
?. ?=(%disallow -.update) [~ this]
|
||||
:_ this
|
||||
[%give %kick ~[resource+(en-path:res [our.bowl %''])] ~]~
|
||||
?+ -.update [~ this]
|
||||
%disallow
|
||||
:_ 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