zf

zenflows testing
git clone https://s.sonu.ch/~srfsh/zf.git
Log | Files | Refs | Submodules | README | LICENSE

commit b618f887a7f3799f17df1d5611fd30358d339a08
parent 68b2352bd934ca4df8e00327013b494ea5b6a7d1
Author: srfsh <dev@srf.sh>
Date:   Thu, 21 Jul 2022 20:06:51 +0300

vf/person/type: add auth_admin? meta

Diffstat:
Msrc/zenflows/vf/person/type.ex | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/zenflows/vf/person/type.ex b/src/zenflows/vf/person/type.ex @@ -158,6 +158,7 @@ end object :mutation_person do @desc "Registers a new (human) person with the collaboration space." field :create_person, non_null(:person_response) do + meta auth_admin?: true arg :person, non_null(:person_create_params) resolve &Resolv.create_person/2 end @@ -173,6 +174,7 @@ object :mutation_person do collaboration space. """ field :delete_person, non_null(:boolean) do + meta auth_admin?: true arg :id, non_null(:id) resolve &Resolv.delete_person/2 end