Render commit link for users with permissions only

pull/2153/head
Hagen Schink 10 years ago
parent 7895e29c7c
commit de86867331
  1. 3
      lib/api/v3/work_packages/form/form_representer.rb

@ -75,7 +75,8 @@ module API
{
href: "#{root_path}api/v3/work_packages/#{represented.id}",
method: :patch
} if represented.valid?
} if @current_user.allowed_to?(:edit_work_packages, represented.project) &&
represented.valid?
end
property :payload,

Loading…
Cancel
Save