Show parent link only if parent is visible to user

pull/1702/head
Hagen Schink 10 years ago
parent 71529c04b1
commit ac39c2b602
  1. 2
      lib/api/v3/work_packages/work_package_representer.rb

@ -129,7 +129,7 @@ module API
{
href: "#{root_url}/api/v3/work_packages/#{represented.work_package.parent.id}",
title: represented.work_package.parent.subject
} unless represented.work_package.parent.nil?
} unless represented.work_package.parent.nil? || !represented.work_package.parent.visible?
end
links :children do

Loading…
Cancel
Save