fixes #2626: Bypass can_upload? checks for administrators

This commit is contained in:
r888888888
2016-07-20 12:34:34 -07:00
parent d1085ced17
commit d46c6f67b8

View File

@@ -479,6 +479,8 @@ class User < ActiveRecord::Base
def can_upload?
if can_upload_free?
true
elsif is_admin?
true
elsif created_at > 1.week.ago
false
else