Commit 78edcc26 authored by Winnie Hellmann's avatar Winnie Hellmann

Allow to override Gitlab.ee? with IS_GITLAB_EE

(cherry picked from commit f3b74d59865a88be67663339447667c725961413)
parent 5990d422
...@@ -59,7 +59,11 @@ module Gitlab ...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment