diff options
Diffstat (limited to 'app/graphql/resolvers/work_item_resolver.rb')
-rw-r--r-- | app/graphql/resolvers/work_item_resolver.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/app/graphql/resolvers/work_item_resolver.rb b/app/graphql/resolvers/work_item_resolver.rb index 9eb7d6bc693..b174a0d2693 100644 --- a/app/graphql/resolvers/work_item_resolver.rb +++ b/app/graphql/resolvers/work_item_resolver.rb @@ -11,10 +11,7 @@ module Resolvers argument :id, ::Types::GlobalIDType[::WorkItem], required: true, description: 'Global ID of the work item.' def resolve(id:) - work_item = authorized_find!(id: id) - return unless work_item.project.work_items_feature_flag_enabled? - - work_item + authorized_find!(id: id) end private |