summaryrefslogtreecommitdiffstats
path: root/app/views/projects/show.api.rsb
diff options
context:
space:
mode:
authorJean-Baptiste Barth <jeanbaptiste.barth@gmail.com>2014-08-15 09:57:00 +0000
committerJean-Baptiste Barth <jeanbaptiste.barth@gmail.com>2014-08-15 09:57:00 +0000
commit772418461f0cba3d8d58065e635e8bc949bdf59d (patch)
treef549f6cc942b4289f3e267410c0c3c13a52ce80b /app/views/projects/show.api.rsb
parent2f6070bb2b9d3f0b04aa17072ce3e1dfac8d32fe (diff)
downloadredmine-772418461f0cba3d8d58065e635e8bc949bdf59d.tar.gz
redmine-772418461f0cba3d8d58065e635e8bc949bdf59d.zip
Add project is_public to GET /projects/:id and /projects API response (#17628).
Contributed by Michael Esemplare <michael.esemplare@gmail.com> git-svn-id: http://svn.redmine.org/redmine/trunk@13339 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/projects/show.api.rsb')
-rw-r--r--app/views/projects/show.api.rsb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/views/projects/show.api.rsb b/app/views/projects/show.api.rsb
index e84ebb073..7a1e07c02 100644
--- a/app/views/projects/show.api.rsb
+++ b/app/views/projects/show.api.rsb
@@ -6,6 +6,7 @@ api.project do
api.homepage @project.homepage
api.parent(:id => @project.parent.id, :name => @project.parent.name) if @project.parent && @project.parent.visible?
api.status @project.status
+ api.is_public @project.is_public?
render_api_custom_values @project.visible_custom_field_values, api