Welcome to mirror list, hosted at ThFree Co, Russian Federation.

create_access_level.rb « protected_tag « models « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5d8b1fb4f71c577d155d1a48d452fae4a1e0c280 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# frozen_string_literal: true

class ProtectedTag::CreateAccessLevel < ApplicationRecord
  include Importable
  include ProtectedTagAccess

  def check_access(user)
    return false if access_level == Gitlab::Access::NO_ACCESS

    super
  end
end