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: b06e55fb5dddb51f2ed38a3b799c25e13d9438a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: true

class ProtectedTag::CreateAccessLevel < ActiveRecord::Base
  include ProtectedTagAccess

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

    super
  end
end