Class: Groovestack::Auth::GraphQL::AuthorizedField
- Inherits:
-
Base::GraphQL::Base::Field
- Object
- Base::GraphQL::Base::Field
- Groovestack::Auth::GraphQL::AuthorizedField
- Defined in:
- lib/groovestack/auth/graphql/authorized_field.rb
Instance Method Summary collapse
Instance Method Details
#authorized?(obj, args, ctx) ⇒ Boolean
7 8 9 10 11 12 13 14 15 |
# File 'lib/groovestack/auth/graphql/authorized_field.rb', line 7 def (obj, args, ctx) = begin obj.(ctx[:current_user]) rescue StandardError [] end super && .include?(name.to_sym) end |