diff options
author | Fabio Papa <fabtheman@gmail.com> | 2019-06-27 13:39:04 -0700 |
---|---|---|
committer | Fabio Papa <fabtheman@gmail.com> | 2019-07-05 08:44:17 -0700 |
commit | 3ae905d67d96cdff2e855b97ae44a617284c91dc (patch) | |
tree | 37a0b3788a909c162b16424c530a304a2a8eaefc | |
parent | 582ff9dbb6dc223163e1ba674cbc72f292520981 (diff) | |
download | gitlab-ce-3ae905d67d96cdff2e855b97ae44a617284c91dc.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 |