debian-mirror-gitlab/lib/gitlab/service_desk.rb

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

17 lines
487 B
Ruby
Raw Permalink Normal View History

2020-07-28 23:09:34 +05:30
# frozen_string_literal: true
module Gitlab
module ServiceDesk
# Check whether a project or GitLab instance can support the Service Desk
# feature. Use `project.service_desk_enabled?` to check whether it is
# enabled for a particular project.
def self.enabled?(project:)
supported? && project[:service_desk_enabled]
end
def self.supported?
2023-06-20 00:43:36 +05:30
Gitlab::Email::IncomingEmail.enabled? && Gitlab::Email::IncomingEmail.supports_wildcard?
2020-07-28 23:09:34 +05:30
end
end
end