mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-13 08:38:43 +03:00
graph-push-hook: check whether someone is a member, not whether they can join
This commit is contained in:
parent
8106be7c16
commit
e2670deba3
@ -44,23 +44,30 @@
|
||||
++ should-proxy-update
|
||||
|= =vase
|
||||
^- ?
|
||||
|^
|
||||
=/ =update:store !<(update:store vase)
|
||||
?- -.q.update
|
||||
%add-graph %.y
|
||||
%remove-graph %.y
|
||||
%add-nodes %.y
|
||||
%remove-nodes %.y
|
||||
%add-signatures %.y
|
||||
%remove-signatures %.y
|
||||
%archive-graph %.y
|
||||
%add-graph (is-member resource.q.update)
|
||||
%remove-graph (is-member resource.q.update)
|
||||
%add-nodes (is-member resource.q.update)
|
||||
%remove-nodes (is-member resource.q.update)
|
||||
%add-signatures (is-member resource.uid.q.update)
|
||||
%remove-signatures (is-member resource.uid.q.update)
|
||||
%archive-graph (is-member resource.q.update)
|
||||
%unarchive-graph %.n
|
||||
%add-tag %.n
|
||||
%remove-tag %.n
|
||||
%keys %.n
|
||||
%tags %.n
|
||||
%tag-queries %.n
|
||||
%run-updates %.y
|
||||
%run-updates (is-member resource.q.update)
|
||||
==
|
||||
::
|
||||
++ is-member
|
||||
|= =resource:res
|
||||
^- ?
|
||||
(is-member:grp src.bowl (en-path:res resource))
|
||||
--
|
||||
::
|
||||
++ resource-for-update
|
||||
|= =vase
|
||||
@ -86,7 +93,7 @@
|
||||
++ initial-watch
|
||||
|= [=path =resource:res]
|
||||
^- vase
|
||||
?> (can-join:grp resource src.bowl)
|
||||
?> (is-member:grp src.bowl (en-path:res resource))
|
||||
!> ^- update:store
|
||||
?~ path
|
||||
:: new subscribe
|
||||
|
Loading…
Reference in New Issue
Block a user