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

Merge pull request #4903 from haiwen/user-quota

fix bug when admin set user quota to 0
This commit is contained in:
Daniel Pan
2021-05-21 22:44:17 +08:00
committed by GitHub

View File

@@ -250,7 +250,7 @@ def update_user_info(request, user, password, is_active, is_staff, role,
if institution_name == '':
InstitutionAdmin.objects.filter(user=email).delete()
if quota_total_mb:
if quota_total_mb is not None:
quota_total = int(quota_total_mb) * get_file_size_unit('MB')
orgs = ccnet_api.get_orgs_by_user(email)
try: