From cf9a53ad9a2da3f728ddc1be73caf16dc9df3e0e Mon Sep 17 00:00:00 2001 From: Hagen Schink Date: Mon, 3 Nov 2014 10:36:35 +0100 Subject: [PATCH] Declare WP description read-only on API V3 --- lib/api/v3/work_packages/work_package_representer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/api/v3/work_packages/work_package_representer.rb b/lib/api/v3/work_packages/work_package_representer.rb index a3056b16d2..6aab815a4c 100644 --- a/lib/api/v3/work_packages/work_package_representer.rb +++ b/lib/api/v3/work_packages/work_package_representer.rb @@ -218,7 +218,7 @@ module API property :lock_version property :subject, render_nil: true property :type, render_nil: true - property :description, exec_context: :decorator, render_nil: true + property :description, exec_context: :decorator, render_nil: true, writeable: false property :raw_description, getter: -> (*) { description }, setter: -> (value, *) { description = value },