publish: set permissions on %serve

This commit is contained in:
Philip Monk 2019-12-02 22:29:12 -08:00
parent 6ca04cdd0b
commit 17db094d61
No known key found for this signature in database
GPG Key ID: B66E1F02604E44EC
3 changed files with 78 additions and 54 deletions

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:58e864f36ebeef35e5000bf55a06953fb054a66a94932b248c01324508e0c250
size 10238857
oid sha256:a31c322a1fef4ce52d8efbdc31d09bc4c72b9be772d807e5f2c6cbc288ee3666
size 10119668

View File

@ -1331,10 +1331,22 @@
*coin
[[our.bol q.byk.bol] /[post]/[coll.act]/publish/web]
==
=/ post-perms=task:able:clay
:* %perm q.byk.bol
/web/publish/[coll.act]/[post]/udon
%w `[%white (ships-to-whom (sy src.bol ~))]
==
=/ comment-perms=task:able:clay
:* %perm q.byk.bol
/web/publish/[coll.act]/[post]
%w `[%black ~]
==
%= out
moves
:* [%pass post-wir %arvo %f %build %.y post-schema]
[%pass comments-wir %arvo %f %build %.y comments-schema]
[%pass /perms %arvo %c post-perms]
[%pass /perms %arvo %c comment-perms]
moves.out
==
::
@ -1343,7 +1355,20 @@
==
::
==
:- moves.all
=/ blog-perms=task:able:clay
:* %perm q.byk.bol
/web/publish/[coll.act]
%rw `[%black ~] `[%white ~]
==
=/ info-perms=task:able:clay
:* %perm q.byk.bol
/web/publish/[coll.act]/publish-info
%rw `*rule:clay `*rule:clay
==
:- :* [%pass /perms %arvo %c blog-perms]
[%pass /perms %arvo %c info-perms]
moves.all
==
%= state
awaiting (~(put by awaiting) coll.act builds.all ~)
==
@ -1729,7 +1754,7 @@
[~ state]
?> ?=([%collection @tas ~] wir)
=/ col=@tas i.t.wir
%- (slog [leaf+"failed to subscribe to blog: {<col>}"]~)
%- (slog [leaf+"failed to subscribe to blog: {<col>}"] u.err)
[~ state]
::
--

View File

@ -6,4 +6,3 @@
==
:- %publish-action
[%subscribe ship name]