Added by Pok Lau over 13 years ago
include_in_api_response?('changesets')
&&User.current.allowed_to?(:view_changesets, @project)
It is pretty straight forward for the second condition, but how can I actually "include changesets in api response"?
Ok, lookst like all I have to do is to pass 'changesets' into the 'include' parameter in the URI, ie to call http://redmine.example/issues/999.xml?include=changesets