diff options
author | Fabio Papa <fabtheman@gmail.com> | 2019-06-27 13:39:04 -0700 |
---|---|---|
committer | Fabio Papa <fabtheman@gmail.com> | 2019-07-02 11:36:02 -0700 |
commit | 83a7545554fc3ccd44cd6c6d620b860d1d4aeb08 (patch) | |
tree | f09757f95320159cd043d587fff062818e8aa6f3 | |
parent | 1f4d2ab096284187d92d00f40ebea4df961b2c8e (diff) | |
download | gitlab-ce-83a7545554fc3ccd44cd6c6d620b860d1d4aeb08.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 |