mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-16 10:49:26 +03:00
Implement requests for reading and writing permission groups.
This commit is contained in:
parent
8b0b82eb72
commit
3f7e76cca5
@ -3535,6 +3535,23 @@
|
||||
$boat
|
||||
:_ ..^$
|
||||
[hen %give %hill (turn ~(tap by mon.ruf) head)]~
|
||||
::.
|
||||
$cred
|
||||
=. cez.ruf
|
||||
?~ cew.q.hic (~(del by cez.ruf) nom.q.hic)
|
||||
(~(put by cez.ruf) nom.q.hic cew.q.hic)
|
||||
:: wake all desks, a request may have been affected.
|
||||
=| mos/(list move)
|
||||
=+ rom=(fall (~(get by fat.ruf) our.q.hic) *room)
|
||||
=+ des=~(tap in ~(key by dos.rom))
|
||||
|-
|
||||
?~ des [[[hen %give %mack ~] mos] ..^^$]
|
||||
=+ den=((de now hen ruf) [. .]:our.q.hic i.des)
|
||||
=^ mor ruf abet:wake:den
|
||||
$(des t.des, mos (weld mos mor))
|
||||
::
|
||||
$crew
|
||||
[[hen %give %cruz cez.ruf]~ ..^$]
|
||||
::
|
||||
$drop
|
||||
=^ mos ruf
|
||||
|
@ -381,7 +381,7 @@
|
||||
++ able ^?
|
||||
|%
|
||||
++ gift :: out result <-$
|
||||
$% {$cruz cez/(map @tas crew)} :: permission groups
|
||||
$% {$cruz cez/(map @ta crew)} :: permission groups
|
||||
{$dirk p/@tas} :: mark mount dirty
|
||||
{$ergo p/@tas q/mode} :: version update
|
||||
{$hill p/(list @tas)} :: mount points
|
||||
@ -397,8 +397,8 @@
|
||||
== ::
|
||||
++ task :: in request ->$
|
||||
$% {$boat $~} :: pier rebooted
|
||||
{$cred nom/@ta cew/crew} :: set permission group
|
||||
{$crew $~} :: permission groups
|
||||
{$cred our/ship nom/@ta cew/crew} :: set permission group
|
||||
{$crew our/ship} :: permission groups
|
||||
{$drop p/@p q/desk} :: cancel pending merge
|
||||
{$info p/@p q/desk r/nori} :: internal edit
|
||||
{$init p/@p} :: report install
|
||||
|
Loading…
Reference in New Issue
Block a user