summaryrefslogtreecommitdiff
path: root/lib/api/projects.rb
diff options
context:
space:
mode:
authorImre Farkas <ifarkas@gitlab.com>2019-07-10 19:10:25 +0200
committerImre Farkas <ifarkas@gitlab.com>2019-07-16 15:10:23 +0200
commit608a2bcf54c53761f3f402c35fad3e5a2852b732 (patch)
tree7993bd63f7be1a34ebd244e36165dc08bf877633 /lib/api/projects.rb
parent5b669c191d766ab980d647107d7c183be5f8f99e (diff)
downloadgitlab-ce-if-12036-move_external_authorization_service_api_management_to_ee.tar.gz
CE port of "Move external authorization service API management to EE"if-12036-move_external_authorization_service_api_management_to_ee
EE MR: https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/14598
Diffstat (limited to 'lib/api/projects.rb')
-rw-r--r--lib/api/projects.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/api/projects.rb b/lib/api/projects.rb
index a7d62014509..0923d31f5ff 100644
--- a/lib/api/projects.rb
+++ b/lib/api/projects.rb
@@ -145,6 +145,7 @@ module API
post do
attrs = declared_params(include_missing: false)
attrs = translate_params_for_compatibility(attrs)
+ filter_attributes_using_license!(attrs)
project = ::Projects::CreateService.new(current_user, attrs).execute
if project.saved?
@@ -179,6 +180,7 @@ module API
attrs = declared_params(include_missing: false)
attrs = translate_params_for_compatibility(attrs)
+ filter_attributes_using_license!(attrs)
project = ::Projects::CreateService.new(user, attrs).execute
if project.saved?
@@ -292,7 +294,7 @@ module API
authorize! :change_visibility_level, user_project if attrs[:visibility].present?
attrs = translate_params_for_compatibility(attrs)
-
+ filter_attributes_using_license!(attrs)
verify_update_project_attrs!(user_project, attrs)
result = ::Projects::UpdateService.new(user_project, current_user, attrs).execute