mirror of
https://github.com/urbit/shrub.git
synced 2024-12-01 06:35:32 +03:00
group-store: Disallow joining of nonexisting groups
Returns %.n upon requesting a join of group that does not exist
This commit is contained in:
parent
f658d99c76
commit
5a1a994b9f
@ -227,8 +227,11 @@
|
||||
|
||||
++ peek-group-join
|
||||
|= [rid=resource =ship]
|
||||
=/ =group
|
||||
(~(gut by groups) rid *group)
|
||||
=/ ugroup
|
||||
(~(get by groups) rid)
|
||||
?~ ugroup
|
||||
%.n
|
||||
=* group u.ugroup
|
||||
=* policy policy.group
|
||||
?- -.policy
|
||||
%invite
|
||||
|
Loading…
Reference in New Issue
Block a user