mirror of
https://github.com/we-promise/sure.git
synced 2026-04-07 14:31:25 +00:00
18 lines
389 B
Ruby
18 lines
389 B
Ruby
# frozen_string_literal: true
|
|
|
|
module FeatureFlags
|
|
class << self
|
|
def db_sso_providers?
|
|
auth_source = ENV.fetch("AUTH_PROVIDERS_SOURCE") do
|
|
Rails.configuration.app_mode.self_hosted? ? "db" : "yaml"
|
|
end
|
|
|
|
auth_source.to_s.downcase == "db"
|
|
end
|
|
|
|
def intro_ui?
|
|
Rails.configuration.x.ui.default_layout.to_s.in?(%w[intro dashboard])
|
|
end
|
|
end
|
|
end
|