diff options
author | Fabio Papa <fabtheman@gmail.com> | 2019-06-28 00:11:09 +0300 |
---|---|---|
committer | Fabio Papa <fabtheman@gmail.com> | 2019-07-19 21:55:46 +0300 |
commit | 9dc5c2ef73682c7c6ff754fe983ac3a3eff11976 (patch) | |
tree | 64c8ae35ff49e7ae9b08d204b277092cb4b5dc52 /lib/gitlab/access.rb | |
parent | d279cc5a7aaca55b6736b065e3b0c119a9a9959b (diff) |
Add "allowed to create subgroups" dropdown to group settings form
Diffstat (limited to 'lib/gitlab/access.rb')
-rw-r--r-- | lib/gitlab/access.rb | 7 |
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 |