mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-31 10:19:07 +01:00
u
This commit is contained in:
parent
2d20aa8dae
commit
2ad1c4294d
1 changed files with 5 additions and 1 deletions
|
@ -253,6 +253,10 @@ class User < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def can_export?
|
||||
!self.export_processing? && (!self.export_created_at.nil? && Time.now > self.export_created_at.in(1.week))
|
||||
if self.export_processing?
|
||||
false
|
||||
else
|
||||
!self.export_created_at.nil? && Time.now > self.export_created_at.in(1.week)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue