diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-10-13 18:48:59 -0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-10-19 14:58:26 -0200 |
commit | 68f30b2fff362805568588f416709e7000d75ce3 (patch) | |
tree | 58149244dd762d75146f5a4e302d5bccd0ce7c17 /lib | |
parent | bf710b5119dce329a1ffd43b01b3a4dbb3e94b09 (diff) | |
download | gitlab-ce-68f30b2fff362805568588f416709e7000d75ce3.tar.gz |
Add support to group labels on issues board API
Diffstat (limited to 'lib')
-rw-r--r-- | lib/api/boards.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/boards.rb b/lib/api/boards.rb index b14dd4f6e83..4ac491edc1b 100644 --- a/lib/api/boards.rb +++ b/lib/api/boards.rb @@ -65,8 +65,8 @@ module API requires :label_id, type: Integer, desc: 'The ID of an existing label' end post '/lists' do - unless user_project.labels.exists?(params[:label_id]) - render_api_error!({ error: "Label not found!" }, 400) + unless available_labels.exists?(params[:label_id]) + render_api_error!({ error: 'Label not found!' }, 400) end authorize!(:admin_list, user_project) |