fixes #2626: Bypass can_upload? checks for administrators
This commit is contained in:
@@ -479,6 +479,8 @@ class User < ActiveRecord::Base
|
|||||||
def can_upload?
|
def can_upload?
|
||||||
if can_upload_free?
|
if can_upload_free?
|
||||||
true
|
true
|
||||||
|
elsif is_admin?
|
||||||
|
true
|
||||||
elsif created_at > 1.week.ago
|
elsif created_at > 1.week.ago
|
||||||
false
|
false
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user