summaryrefslogtreecommitdiff
path: root/app/models/protected_tag
diff options
context:
space:
mode:
authorJames Edwards-Jones <jedwardsjones@gitlab.com>2017-11-24 12:41:36 +0000
committerJames Edwards-Jones <jedwardsjones@gitlab.com>2017-11-24 13:20:56 +0000
commitd6dd9d712ac24a095d0b0506731f9415b7c3b5f5 (patch)
treedd8cb75a449d3632902d94933ab36210f5d6abf8 /app/models/protected_tag
parente548c613346a09ba2fc8dfd6ed64da6628ec6a45 (diff)
downloadgitlab-ce-d6dd9d712ac24a095d0b0506731f9415b7c3b5f5.tar.gz
Fix ProtectedBranch access level validations
Before an access_level was required in EE even when an it had been set for a user/group.
Diffstat (limited to 'app/models/protected_tag')
-rw-r--r--app/models/protected_tag/create_access_level.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/app/models/protected_tag/create_access_level.rb b/app/models/protected_tag/create_access_level.rb
index c7e1319719d..d1e81158351 100644
--- a/app/models/protected_tag/create_access_level.rb
+++ b/app/models/protected_tag/create_access_level.rb
@@ -1,10 +1,6 @@
class ProtectedTag::CreateAccessLevel < ActiveRecord::Base
include ProtectedTagAccess
- validates :access_level, presence: true, inclusion: { in: [Gitlab::Access::MASTER,
- Gitlab::Access::DEVELOPER,
- Gitlab::Access::NO_ACCESS] }
-
def self.human_access_levels
{
Gitlab::Access::MASTER => "Masters",