summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Schilling <rschilling@student.tugraz.at>2017-08-30 10:11:24 +0200
committerRobert Schilling <rschilling@student.tugraz.at>2017-08-30 10:11:24 +0200
commit9edaff0d3547ba9854e69655a4ae4d5095b8a25f (patch)
tree79cf80620745b34d72ffb8c23d47e421dc8252e5
parent1488d1f77c83969f42269c9cb0b7c285b4232899 (diff)
downloadgitlab-ce-37198-api-doesn-t-respect-default-group-visibility.tar.gz
-rw-r--r--lib/api/groups.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/api/groups.rb b/lib/api/groups.rb
index 15266e9d4e5..cf3cee0073c 100644
--- a/lib/api/groups.rb
+++ b/lib/api/groups.rb
@@ -7,9 +7,11 @@ module API
helpers do
params :optional_params_ce do
optional :description, type: String, desc: 'The description of the group'
- optional :visibility, type: String, values: Gitlab::VisibilityLevel.string_values,
- default: Gitlab::VisibilityLevel.string_level(Gitlab::CurrentSettings.current_application_settings.default_group_visibility),
- desc: 'The visibility of the group'
+ optional :visibility, type: String,
+ values: Gitlab::VisibilityLevel.string_values,
+ default: Gitlab::VisibilityLevel.string_level(
+ Gitlab::CurrentSettings.current_application_settings.default_group_visibility),
+ desc: 'The visibility of the group'
optional :lfs_enabled, type: Boolean, desc: 'Enable/disable LFS for the projects in this group'
optional :request_access_enabled, type: Boolean, desc: 'Allow users to request member access'
optional :share_with_group_lock, type: Boolean, desc: 'Prevent sharing a project with another group within this group'