graph-push-hook: correctly call +get-roles-writers-variation

Fixes urbit/landscape#423
Fixes urbit/landscape#424
This commit is contained in:
Liam Fitzgerald 2021-02-16 11:07:51 +10:00
parent 66d9fd8426
commit f5268a528f
No known key found for this signature in database
GPG Key ID: D390E12C61D1CFFB

View File

@ -221,7 +221,6 @@
(node-to-indexed-post node)
=/ =permission-level:store
(get-permission permissions is-admin writers)
~& permission-level
?- permission-level
%yes %.y
%no %.n
@ -238,7 +237,7 @@
|= [=resource:res indices=(set index:store)]
^- ?
%- (bond |.(%.n))
%+ biff (get-roles-writers-variation)
%+ biff (get-roles-writers-variation resource)
|= [is-admin=? writers=(set ship) vip=vip-metadata:metadata]
%- some
%+ levy ~(tap by indices)