diff options
Diffstat (limited to 'app/graphql/mutations/work_items/update.rb')
-rw-r--r-- | app/graphql/mutations/work_items/update.rb | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/app/graphql/mutations/work_items/update.rb b/app/graphql/mutations/work_items/update.rb index b4ed0a1a3ca..04c63d8e876 100644 --- a/app/graphql/mutations/work_items/update.rb +++ b/app/graphql/mutations/work_items/update.rb @@ -4,8 +4,7 @@ module Mutations module WorkItems class Update < BaseMutation graphql_name 'WorkItemUpdate' - description "Updates a work item by Global ID." \ - " Available only when feature flag `work_items` is enabled." + description "Updates a work item by Global ID." include Mutations::SpamProtection include Mutations::WorkItems::UpdateArguments @@ -20,10 +19,6 @@ module Mutations def resolve(id:, **attributes) work_item = authorized_find!(id: id) - unless work_item.project.work_items_feature_flag_enabled? - return { errors: ['`work_items` feature flag disabled for this project'] } - end - spam_params = ::Spam::SpamParams.new_from_request(request: context[:request]) widget_params = extract_widget_params!(work_item.work_item_type, attributes) |