1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-25 06:33:48 +00:00

Use seafile_api to set/get org user quota

This commit is contained in:
cuihaikuo
2017-01-06 11:26:53 +08:00
parent 49eb940004
commit 0f0c360f21
2 changed files with 4 additions and 5 deletions

View File

@@ -1355,8 +1355,7 @@ def space_and_traffic(request):
space_usage = seafile_api.get_user_self_usage(username)
else:
org_id = org[0].org_id
space_quota = seafserv_threaded_rpc.get_org_user_quota(org_id,
username)
space_quota = seafile_api.get_org_user_quota(org_id, username)
space_usage = seafserv_threaded_rpc.get_org_user_quota_usage(
org_id, username)