tweak number

This commit is contained in:
albert
2013-03-21 16:13:00 -07:00
parent 851ab1d256
commit af75e862b1
2 changed files with 2 additions and 2 deletions

View File

@@ -440,7 +440,7 @@ class User < ActiveRecord::Base
if base_upload_limit
limit = [base_upload_limit - (deleted_count / 2), 4].max - pending_count
else
limit = [10 + [approved_count / 2, 20].min - (deleted_count / 2), 4].max - pending_count
limit = [10 + [approved_count / 2, 30].min - (deleted_count / 2), 4].max - pending_count
end
if limit < 0