diff options
Diffstat (limited to 'lib/gitlab/access/branch_protection.rb')
-rw-r--r-- | lib/gitlab/access/branch_protection.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/gitlab/access/branch_protection.rb b/lib/gitlab/access/branch_protection.rb index f039e5c011f..339a99eb068 100644 --- a/lib/gitlab/access/branch_protection.rb +++ b/lib/gitlab/access/branch_protection.rb @@ -37,6 +37,10 @@ module Gitlab def developer_can_merge? level == PROTECTION_DEV_CAN_MERGE end + + def fully_protected? + level == PROTECTION_FULL + end end end end |