included full group information in scry

This commit is contained in:
Isaac Visintainer 2018-06-19 14:43:16 -07:00
parent 4d11928db6
commit 43b3a84db5
2 changed files with 16 additions and 8 deletions

View File

@ -2370,20 +2370,19 @@
(read-p-in pax pew.red)
::
++ read-p-in
!:
|= {pax/path pes/regs}
^- dict
=/ rul=(unit rule) (~(get by pes) pax)
?^ rul
:+ pax mod.u.rul
%- ~(rep in who.u.rul)
|= {w/whom out/(set @p)}
|= {w/whom out/(pair (set @p) (map @ta crew))}
?: ?=([$& @p] w)
(~(put in out) +.w)
=/ cru=(unit (set @p)) (~(get by cez.ruf) +.w)
[(~(put in p.out) +.w) q.out]
=/ cru=(unit crew) (~(get by cez.ruf) +.w)
?~ cru out
(~(uni in out) u.cru)
?~ pax [/ %white ~]
[p.out (~(put by q.out) +.w u.cru)]
?~ pax [/ %white ~ ~]
$(pax (scag (dec (lent pax)) `path`pax))
::
++ may-read
@ -2417,7 +2416,13 @@
|= {who/ship pax/path pes/regs}
^- ?
=/ rul=real rul:(read-p-in pax pes)
=/ in-list=? (~(has in who.rul) who)
=/ in-list=?
?| (~(has in p.who.rul) who)
%- ~(rep by q.who.rul)
|= [[@ta cru=crew] out=_|]
?: out &
(~(has in cru) who)
==
?: =(%black mod.rul)
!in-list
in-list

View File

@ -508,7 +508,10 @@
{$mult p/mool} :: next version of any
{$many p/? q/moat} :: track range
== ::
++ real {mod/?($black $white) who/(set ship)} :: resolved permissions
++ real :: resolved permissions
$: mod/?($black $white) ::
who/(pair (set ship) (map @ta crew)) ::
== ::
++ regs (map path rule) :: rules for paths
++ riff {p/desk q/(unit rave)} :: request+desist
++ rite :: new permissions