summaryrefslogtreecommitdiff
path: root/app/graphql/types/base_interface.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/graphql/types/base_interface.rb')
-rw-r--r--app/graphql/types/base_interface.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/graphql/types/base_interface.rb b/app/graphql/types/base_interface.rb
index 4b1f3193136..c21c95876be 100644
--- a/app/graphql/types/base_interface.rb
+++ b/app/graphql/types/base_interface.rb
@@ -5,5 +5,11 @@ module Types
include GraphQL::Schema::Interface
field_class ::Types::BaseField
+
+ definition_methods do
+ def authorized?(object, context)
+ resolve_type(object, context).authorized?(object, context)
+ end
+ end
end
end