Commit cc365bc6 by Bence Dányi

one: disable quota editing only if the user _really_ has no more share quota

Well, the users share quota usage should never exceed the limit, so if
this condition is true, that indicates some other problems.
parent 9ac80a3f
......@@ -208,7 +208,7 @@ ajax_share_wizard = login_required(AjaxShareWizard.as_view())
class AjaxShareEditWizard(View):
def get(self, request, id, *args, **kwargs):
det = UserCloudDetails.objects.get(user=request.user)
if det.get_weighted_share_count() >= det.share_quota:
if det.get_weighted_share_count() > det.share_quota:
return HttpResponse(unicode(_('You do not have any free share quota.')))
types = TYPES_L
for i, t in enumerate(types):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment