diff options
Diffstat (limited to 'app/graphql/mutations/work_items/delete_task.rb')
-rw-r--r-- | app/graphql/mutations/work_items/delete_task.rb | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/app/graphql/mutations/work_items/delete_task.rb b/app/graphql/mutations/work_items/delete_task.rb index b1bfed0cbf1..47ab3748ab4 100644 --- a/app/graphql/mutations/work_items/delete_task.rb +++ b/app/graphql/mutations/work_items/delete_task.rb @@ -5,8 +5,7 @@ module Mutations class DeleteTask < BaseMutation graphql_name 'WorkItemDeleteTask' - description "Deletes a task in a work item's description." \ - ' Available only when feature flag `work_items` is enabled.' + description "Deletes a task in a work item's description." authorize :update_work_item @@ -29,10 +28,6 @@ module Mutations work_item = authorized_find!(id: id) task_data[:task] = authorized_find_task!(task_data[:id]) - unless work_item.project.work_items_feature_flag_enabled? - return { errors: ['`work_items` feature flag disabled for this project'] } - end - result = ::WorkItems::DeleteTaskService.new( work_item: work_item, current_user: current_user, |