From 851af082181a73ea0a09c94b88f02b1e1e98962b Mon Sep 17 00:00:00 2001 From: Dominic Grimm Date: Thu, 20 Jan 2022 17:54:46 +0100 Subject: [PATCH] Removed invalid auth annotation --- docker/backend/src/mw/schema/query.cr | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docker/backend/src/mw/schema/query.cr b/docker/backend/src/mw/schema/query.cr index 0396a2d..2127773 100644 --- a/docker/backend/src/mw/schema/query.cr +++ b/docker/backend/src/mw/schema/query.cr @@ -23,9 +23,8 @@ module MW User.new(id) end - @[GraphQL::Field({UserRole::Admin})] + @[GraphQL::Field] def users(context : Context) : Array(User) - puts "AUTHORIZED ALLOWED ROLES: #{{{ @def.annotation(GraphQL::Field)[0] }}}" context.admin! Db::User.all.map { |user| User.new(user) }