upload limit tweaks
This commit is contained in:
@@ -440,7 +440,7 @@ class User < ActiveRecord::Base
|
||||
if base_upload_limit.to_i != 0
|
||||
limit = [base_upload_limit - (deleted_count / 2), 4].max - pending_count
|
||||
else
|
||||
limit = [10 + [approved_count / 2, 90].min - (deleted_count / 2), 4].max - pending_count
|
||||
limit = [10 + [approved_count / 2, 90].min - ([deleted_count / 10, 90].min), 4].max - pending_count
|
||||
end
|
||||
|
||||
if limit < 0
|
||||
|
||||
Reference in New Issue
Block a user