Fix #4689: Remove 7 day waiting period for new uploaders.

This commit is contained in:
evazion
2021-02-04 00:14:21 -06:00
parent b8dbc7f68a
commit 4c0c3360e7
3 changed files with 6 additions and 21 deletions

View File

@@ -13,23 +13,7 @@ class UploadLimit
end
def limited?
if user.can_upload_free?
false
elsif user.created_at > 1.week.ago
true
else
used_upload_slots >= upload_slots
end
end
def limit_reason
if user.created_at > 1.week.ago
"cannot upload during your first week of registration"
elsif limited?
"have reached your upload limit"
else
nil
end
!user.can_upload_free? && used_upload_slots >= upload_slots
end
def maxed?