Allow to override Gitlab.ee? with IS_GITLAB_EE

(cherry picked from commit f3b74d59865a88be67663339447667c725961413)
This commit is contained in:
Winnie Hellmann 2019-04-25 11:47:31 +02:00
parent 5990d42253
commit 78edcc2678

View file

@ -59,7 +59,11 @@ module Gitlab
end end
def self.ee? def self.ee?
Object.const_defined?(:License) if ENV['IS_GITLAB_EE'].present?
Gitlab::Utils.to_boolean(ENV['IS_GITLAB_EE'])
else
Object.const_defined?(:License)
end
end end
def self.process_name def self.process_name