|
|
@ -31,8 +31,7 @@ module API |
|
|
|
namespace ':relation_id' do |
|
|
|
namespace ':relation_id' do |
|
|
|
delete do |
|
|
|
delete do |
|
|
|
authorize(:manage_work_package_relations, context: @work_package.project) |
|
|
|
authorize(:manage_work_package_relations, context: @work_package.project) |
|
|
|
relation = Relation.find(params[:relation_id]) |
|
|
|
Relation.destroy(params[:id]) |
|
|
|
relation.delete |
|
|
|
|
|
|
|
status 204 |
|
|
|
status 204 |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|