mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-24 15:34:10 +03:00
publish: set permissions on %serve
This commit is contained in:
parent
6ca04cdd0b
commit
17db094d61
@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:58e864f36ebeef35e5000bf55a06953fb054a66a94932b248c01324508e0c250
|
||||
size 10238857
|
||||
oid sha256:a31c322a1fef4ce52d8efbdc31d09bc4c72b9be772d807e5f2c6cbc288ee3666
|
||||
size 10119668
|
||||
|
@ -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]
|
||||
::
|
||||
--
|
||||
|
@ -6,4 +6,3 @@
|
||||
==
|
||||
:- %publish-action
|
||||
[%subscribe ship name]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user