Removed invalid auth annotation
This commit is contained in:
parent
0fc2902a75
commit
851af08218
|
@ -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) }
|
||||
|
|
Loading…
Reference in a new issue