1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-20 02:48:51 +00:00

[sysadmin] Fix license parse and system info bug

This commit is contained in:
zhengxie
2015-05-29 17:07:18 +08:00
parent ef9032be6c
commit 5581d1cf36

View File

@@ -65,7 +65,8 @@ def sys_info(request):
- `request`:
"""
try:
users_count = ccnet_threaded_rpc.count_emailusers('DB')
users_count = ccnet_threaded_rpc.count_emailusers('DB') + \
ccnet_threaded_rpc.count_emailusers('LDAP')
except Exception as e:
logger.error(e)
users_count = 0
@@ -89,7 +90,7 @@ def sys_info(request):
is_pro = is_pro_version()
if is_pro:
license_dict = parse_license('../../../../seafile-license.txt')
license_dict = parse_license('../seafile-license.txt')
else:
license_dict = {}
return render_to_response('sysadmin/sys_info.html', {