summaryrefslogtreecommitdiffstats
path: root/app/views/projects
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
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')
-rw-r--r--app/views/projects/index.api.rsb1
-rw-r--r--app/views/projects/show.api.rsb1
2 files changed, 2 insertions, 0 deletions
diff --git a/app/views/projects/index.api.rsb b/app/views/projects/index.api.rsb
index 1aa5fe796..a07db1b71 100644
--- a/app/views/projects/index.api.rsb
+++ b/app/views/projects/index.api.rsb
@@ -7,6 +7,7 @@ api.array :projects, api_meta(:total_count => @project_count, :offset => @offset
api.description project.description
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
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