zf

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

commit cec687aa744a924fd14936e756792dc4a51cf185
parent 6445da262e635e5d64927ebddcd83a091234e533
Author: srfsh <dev@srf.sh>
Date:   Tue, 26 Jul 2022 16:24:59 +0300

Zenflows.GQL.Schema: change auth_admin? to only_admin?

Diffstat:
Msrc/zenflows/gql/schema.ex | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/zenflows/gql/schema.ex b/src/zenflows/gql/schema.ex @@ -168,7 +168,7 @@ require Logger @impl true def middleware(mw, field, %{identifier: id}) when id in ~w[query mutation subscription]a do - if Absinthe.Type.meta(field, :auth_admin?) do + if Absinthe.Type.meta(field, :only_admin?) do [MW.Admin | mw] ++ [MW.Errors] else [MW.Sign | mw] ++ [MW.Errors]