diff options
author | Sean McGivern <sean@gitlab.com> | 2018-08-28 17:30:38 +0100 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2018-09-17 19:36:53 +0800 |
commit | b3cd850c3f47ab2527b13d5038abb99893a6bff9 (patch) | |
tree | 5cd4744dec0998738833b7d3b49b7353e22c8477 /lib | |
parent | 9357585ecacacfa0618b4f4172d5ea7dd0b1c5ae (diff) | |
download | gitlab-ce-b3cd850c3f47ab2527b13d5038abb99893a6bff9.tar.gz |
Remove EE-specific code from ProtectedRefAccess
Diffstat (limited to 'lib')
-rw-r--r-- | lib/api/protected_branches.rb | 4 | ||||
-rw-r--r-- | lib/api/protected_tags.rb | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/api/protected_branches.rb b/lib/api/protected_branches.rb index e569fad8663..804f6fa9b73 100644 --- a/lib/api/protected_branches.rb +++ b/lib/api/protected_branches.rb @@ -44,10 +44,10 @@ module API params do requires :name, type: String, desc: 'The name of the protected branch' optional :push_access_level, type: Integer, - values: ProtectedRefAccess::ALLOWED_ACCESS_LEVELS, + values: ProtectedBranch::PushAccessLevel.allowed_access_levels, desc: 'Access levels allowed to push (defaults: `40`, maintainer access level)' optional :merge_access_level, type: Integer, - values: ProtectedRefAccess::ALLOWED_ACCESS_LEVELS, + values: ProtectedBranch::MergeAccessLevel.allowed_access_levels, desc: 'Access levels allowed to merge (defaults: `40`, maintainer access level)' end # rubocop: disable CodeReuse/ActiveRecord diff --git a/lib/api/protected_tags.rb b/lib/api/protected_tags.rb index 219d51a2bc5..e406344e42d 100644 --- a/lib/api/protected_tags.rb +++ b/lib/api/protected_tags.rb @@ -47,7 +47,7 @@ module API params do requires :name, type: String, desc: 'The name of the protected tag' optional :create_access_level, type: Integer, default: Gitlab::Access::MAINTAINER, - values: ProtectedRefAccess::ALLOWED_ACCESS_LEVELS, + values: ProtectedTag::CreateAccessLevel.allowed_access_levels, desc: 'Access levels allowed to create (defaults: `40`, maintainer access level)' end post ':id/protected_tags' do |