gitlab-org--gitlab-foss/app/policies/work_items/type_policy.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
202 B
Ruby
Raw Normal View History

# frozen_string_literal: true
module WorkItems
class TypePolicy < BasePolicy
condition(:is_default_type) { @subject.default? }
rule { is_default_type }.enable :read_work_item_type
end
end