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
path: root/lib
diff options
context:
space:
mode:
authorFabio Papa <fabtheman@gmail.com>2019-06-28 00:11:09 +0300
committerFabio Papa <fabtheman@gmail.com>2019-07-19 21:55:46 +0300
commit9dc5c2ef73682c7c6ff754fe983ac3a3eff11976 (patch)
tree64c8ae35ff49e7ae9b08d204b277092cb4b5dc52 /lib
parentd279cc5a7aaca55b6736b065e3b0c119a9a9959b (diff)
Add "allowed to create subgroups" dropdown to group settings form
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/access.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/gitlab/access.rb b/lib/gitlab/access.rb
index 77076ead47a..7ef9f7ef630 100644
--- a/lib/gitlab/access.rb
+++ b/lib/gitlab/access.rb
@@ -110,6 +110,13 @@ module Gitlab
def project_creation_level_name(name)
project_creation_options.key(name)
end
+
+ def subgroup_creation_options
+ {
+ s_('SubgroupCreationlevel|Owners') => OWNER_SUBGROUP_ACCESS,
+ s_('SubgroupCreationlevel|Maintainers') => MAINTAINER_SUBGROUP_ACCESS
+ }
+ end
end
def human_access