Fix another tests.

(forgot to commit earlier)
This commit is contained in:
Berker Peksag
2014-08-07 13:08:42 +03:00
parent a7e1d8829f
commit cda3055bd6
13 changed files with 28 additions and 33 deletions

View File

@@ -59,7 +59,7 @@ def get_upload_file_limits(user):
"""
Get the upload_limit and max_file_size for this user
"""
if user.upload_limit >= 0:
if user.upload_limit is not None and user.upload_limit >= 0: # TODO: debug this
upload_limit = user.upload_limit
else:
upload_limit = mg_globals.app_config.get('upload_limit', None)