mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-20 01:56:06 +10:00
Set a default sync time if not available
This commit is contained in:
@@ -56,6 +56,7 @@ end
|
||||
# Default settings
|
||||
Settings['ldap'] ||= Settingslogic.new({})
|
||||
Settings.ldap['enabled'] = false if Settings.ldap['enabled'].nil?
|
||||
Settings.ldap['sync_time'] = 3600 if Settings.ldap['sync_time'].nil?
|
||||
|
||||
# backwards compatibility, we only have one host
|
||||
if Settings.ldap['enabled'] || Rails.env.test?
|
||||
|
||||
Reference in New Issue
Block a user