diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-02-04 05:12:20 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-02-04 05:12:20 +0300 |
commit | 490cf7bfcefdb2e275c537699717c12e440f57ec (patch) | |
tree | 3263a5e24ba923d4f0a6da82b9862dfc4324e03a /lib | |
parent | 635ebac606d77eae03ce2e2a8f0a814ad4c79177 (diff) |
Improve protected branches selectbox options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/access.rb | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/gitlab/access.rb b/lib/gitlab/access.rb index ad05bfadafe..424541b4a04 100644 --- a/lib/gitlab/access.rb +++ b/lib/gitlab/access.rb @@ -50,12 +50,13 @@ module Gitlab end def protection_options - { - "None" => PROTECTION_NONE, - "Protect, developers can push" => PROTECTION_DEV_CAN_PUSH, - "Full protection" => PROTECTION_FULL, - } + { + "Not protected, developers and masters can (force) push and delete the branch" => PROTECTION_NONE, + "Partially protected, developers can also push but prevent all force pushes and deletion" => PROTECTION_DEV_CAN_PUSH, + "Fully protected, only masters can push and prevent all force pushes and deletion" => PROTECTION_FULL, + } end + def protection_values protection_options.values end |