diff options
author | James Edwards-Jones <jedwardsjones@gitlab.com> | 2017-11-24 12:41:36 +0000 |
---|---|---|
committer | James Edwards-Jones <jedwardsjones@gitlab.com> | 2017-11-24 13:20:56 +0000 |
commit | d6dd9d712ac24a095d0b0506731f9415b7c3b5f5 (patch) | |
tree | dd8cb75a449d3632902d94933ab36210f5d6abf8 /app/models/protected_tag | |
parent | e548c613346a09ba2fc8dfd6ed64da6628ec6a45 (diff) | |
download | gitlab-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.rb | 4 |
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", |