|
|
|
@ -147,7 +147,7 @@ module API |
|
|
|
|
property :assignee, embedded: true, class: ::API::V3::Users::UserModel, decorator: ::API::V3::Users::UserRepresenter, if: -> (*) { !assignee.nil? } |
|
|
|
|
|
|
|
|
|
collection :activities, embedded: true, class: ::API::V3::Activities::ActivityModel, decorator: ::API::V3::Activities::ActivityRepresenter |
|
|
|
|
property :watchers, embedded: true, exec_context: :decorator |
|
|
|
|
property :watchers, embedded: true, exec_context: :decorator, if: -> (*) { current_user_allowed_to(:view_work_package_watchers, represented.work_package) } |
|
|
|
|
collection :attachments, embedded: true, class: ::API::V3::Attachments::AttachmentModel, decorator: ::API::V3::Attachments::AttachmentRepresenter |
|
|
|
|
property :relations, embedded: true, exec_context: :decorator |
|
|
|
|
|
|
|
|
|