Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOswaldo Ferreira <oswaldo@gitlab.com>2018-08-07 20:29:06 +0300
committerPhil Hughes <me@iamphill.com>2018-08-07 20:29:06 +0300
commitddb14e4098c9b16023cdd25743cb2dfb52481e5a (patch)
tree8e05a389dacf30ec13eb59e975e0c3dfff79003f /lib/api/boards.rb
parent21c18070283041fb016777493d61b42edac600e5 (diff)
Backport issue board milestone lists EE changes
Diffstat (limited to 'lib/api/boards.rb')
-rw-r--r--lib/api/boards.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/api/boards.rb b/lib/api/boards.rb
index 086d39d5070..0f89414148b 100644
--- a/lib/api/boards.rb
+++ b/lib/api/boards.rb
@@ -71,12 +71,10 @@ module API
success Entities::List
end
params do
- requires :label_id, type: Integer, desc: 'The ID of an existing label'
+ use :list_creation_params
end
post '/lists' do
- unless available_labels_for(user_project).exists?(params[:label_id])
- render_api_error!({ error: 'Label not found!' }, 400)
- end
+ authorize_list_type_resource!
authorize!(:admin_list, user_project)