diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-10-11 14:47:02 -0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-10-19 14:58:26 -0200 |
commit | bde992a83a9e0655dd9c2f59d7314c14b714bd31 (patch) | |
tree | 35e2a402152ad1a20aced5b4308001d92a836997 | |
parent | 36fee24c80afa1e1c5f55cd5f5e5f45a60531d8e (diff) | |
download | gitlab-ce-bde992a83a9e0655dd9c2f59d7314c14b714bd31.tar.gz |
Limit what label fields we expose on Projects::LabelsController#index
-rw-r--r-- | app/controllers/projects/labels_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/labels_controller.rb b/app/controllers/projects/labels_controller.rb index 3154a4435f6..87c9101551b 100644 --- a/app/controllers/projects/labels_controller.rb +++ b/app/controllers/projects/labels_controller.rb @@ -18,7 +18,7 @@ class Projects::LabelsController < Projects::ApplicationController respond_to do |format| format.html format.json do - render json: @labels + render json: @labels.as_json(only: [:id, :title, :color]) end end end |