diff options
author | Fabio Papa <fabtheman@gmail.com> | 2019-06-27 13:39:04 -0700 |
---|---|---|
committer | Fabio Papa <fabtheman@gmail.com> | 2019-06-27 15:52:37 -0700 |
commit | 58e4c7fea3a4ffcccac77290bd54f1b59475af0e (patch) | |
tree | 1e2849693e2124d3c34e99440601fbb715eefb36 | |
parent | 521d4c76db6d18468bdee6d28d5dc408c7c7a09f (diff) | |
download | gitlab-ce-58e4c7fea3a4ffcccac77290bd54f1b59475af0e.tar.gz |
Add constants representing Owner and Maintainer group access levels
-rw-r--r-- | lib/gitlab/access.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/gitlab/access.rb b/lib/gitlab/access.rb index 6eb08f674c2..77076ead47a 100644 --- a/lib/gitlab/access.rb +++ b/lib/gitlab/access.rb @@ -29,6 +29,10 @@ module Gitlab MAINTAINER_PROJECT_ACCESS = 1 DEVELOPER_MAINTAINER_PROJECT_ACCESS = 2 + # Default subgroup creation level + OWNER_SUBGROUP_ACCESS = 0 + MAINTAINER_SUBGROUP_ACCESS = 1 + class << self delegate :values, to: :options |