mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-03-31 05:02:14 +02:00
f
This commit is contained in:
parent
573fd89887
commit
2d20aa8dae
1 changed files with 1 additions and 1 deletions
|
@ -253,6 +253,6 @@ class User < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def can_export?
|
def can_export?
|
||||||
!self.export_processing? || (!self.export_created_at.nil? && Time.now > self.export_created_at.in(1.week))
|
!self.export_processing? && (!self.export_created_at.nil? && Time.now > self.export_created_at.in(1.week))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue