[fix] [minor] show live chat link if commercial_support = 1 in conf.py

This commit is contained in:
Anand Doshi
2013-09-05 17:50:40 +05:30
parent ce4be997ab
commit c7fa9cc4f5
2 changed files with 6 additions and 4 deletions

View File

@@ -33,8 +33,9 @@ def boot_session(bootinfo):
# load subscription info
import conf
for key in ['max_users', 'expires_on', 'max_space', 'status', 'developer_mode']:
if hasattr(conf, key): bootinfo[key] = getattr(conf, key)
for key in ['max_users', 'expires_on', 'max_space', 'status', 'developer_mode',
'commercial_support']:
if hasattr(conf, key): bootinfo[key] = getattr(conf, key)
bootinfo['docs'] += webnotes.conn.sql("""select name, default_currency, cost_center
from `tabCompany`""", as_dict=1, update={"doctype":":Company"})