diff options
Diffstat (limited to 'app/graphql/types/base_union.rb')
-rw-r--r-- | app/graphql/types/base_union.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/graphql/types/base_union.rb b/app/graphql/types/base_union.rb index 30a5668c0bb..aeafbf85020 100644 --- a/app/graphql/types/base_union.rb +++ b/app/graphql/types/base_union.rb @@ -2,5 +2,8 @@ module Types class BaseUnion < GraphQL::Schema::Union + def self.authorized?(object, context) + resolve_type(object, context).authorized?(object, context) + end end end |