Use soft_limit for __check_routing_quota #281

This commit is contained in:
Rafa de la Torre 2016-10-18 17:44:51 +02:00
parent 72998c324a
commit aaff5564ec

View File

@ -115,8 +115,9 @@ class QuotaChecker:
today = date.today()
service_type = self._user_service_config.service_type
current_used = self._user_service.used_quota(service_type, today)
soft_limit = self._user_service_config.soft_limit
if (user_quota > 0 and current_used <= user_quota):
if soft_limit or (user_quota > 0 and current_used <= user_quota):
return True
else:
return False