c and k
This commit is contained in:
parent
2ad1c4294d
commit
78b34ef6f9
|
@ -253,10 +253,6 @@ class User < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def can_export?
|
def can_export?
|
||||||
if self.export_processing?
|
!self.export_processing || !self.export_created_at.nil? || (Time.now > self.export_created_at.in(1.week))
|
||||||
false
|
|
||||||
else
|
|
||||||
!self.export_created_at.nil? && Time.now > self.export_created_at.in(1.week)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue