2020-04-30 06:29:06 +03:00
|
|
|
/- sur=chat-view, *rw-security
|
|
|
|
^?
|
|
|
|
=< [sur .]
|
|
|
|
=, sur
|
2020-04-25 06:51:28 +03:00
|
|
|
|%
|
|
|
|
++ dejs
|
|
|
|
|%
|
|
|
|
++ action
|
|
|
|
|= jon=json
|
|
|
|
^- ^action
|
|
|
|
=, dejs:format
|
|
|
|
=< (parse-json jon)
|
|
|
|
|%
|
|
|
|
++ parse-json
|
2020-04-29 11:36:12 +03:00
|
|
|
%- of
|
|
|
|
:~ [%create create]
|
|
|
|
[%delete delete]
|
|
|
|
[%join join]
|
|
|
|
[%groupify groupify]
|
|
|
|
==
|
2020-04-25 06:51:28 +03:00
|
|
|
::
|
|
|
|
++ create
|
2020-04-29 11:36:12 +03:00
|
|
|
%- ot
|
|
|
|
:~ [%title so]
|
|
|
|
[%description so]
|
|
|
|
[%app-path pa]
|
|
|
|
[%group-path pa]
|
|
|
|
[%security sec]
|
|
|
|
[%members (as (su ;~(pfix sig fed:ag)))]
|
|
|
|
[%allow-history bo]
|
|
|
|
==
|
2020-04-25 06:51:28 +03:00
|
|
|
::
|
|
|
|
++ delete
|
2020-04-29 11:36:12 +03:00
|
|
|
(ot [%app-path pa]~)
|
2020-04-25 06:51:28 +03:00
|
|
|
::
|
|
|
|
++ join
|
2020-04-29 11:36:12 +03:00
|
|
|
%- ot
|
|
|
|
:~ [%ship (su ;~(pfix sig fed:ag))]
|
|
|
|
[%app-path pa]
|
|
|
|
[%ask-history bo]
|
|
|
|
==
|
2020-04-25 06:51:28 +03:00
|
|
|
::
|
|
|
|
++ groupify
|
2020-04-29 11:36:12 +03:00
|
|
|
=- (ot [%app-path pa] [%existing -] ~)
|
|
|
|
(mu (ot [%group-path pa] [%inclusive bo] ~))
|
2020-04-25 06:51:28 +03:00
|
|
|
::
|
|
|
|
++ sec
|
2020-04-29 11:36:12 +03:00
|
|
|
=, dejs:format
|
|
|
|
^- $-(json rw-security)
|
|
|
|
(su (perk %channel %village %journal %mailbox ~))
|
2020-04-25 06:51:28 +03:00
|
|
|
--
|
|
|
|
--
|
|
|
|
--
|