Module: Gitlab::ServiceDesk

Defined in:
lib/gitlab/service_desk.rb

Class Method Summary collapse

Class Method Details

.enabled?(project:) ⇒ Boolean

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.

Returns:

  • (Boolean)

8
9
10
# File 'lib/gitlab/service_desk.rb', line 8

def self.enabled?(project:)
  supported? && project[:service_desk_enabled]
end

.supported?Boolean

Returns:

  • (Boolean)

12
13
14
# File 'lib/gitlab/service_desk.rb', line 12

def self.supported?
  Gitlab::IncomingEmail.enabled? && Gitlab::IncomingEmail.supports_wildcard?
end