From 39c79287e24e6d44abff42f8a95c1128b6c74637 Mon Sep 17 00:00:00 2001 From: Georg G Date: Tue, 5 Jan 2016 21:50:21 +0100 Subject: [PATCH] ing hell --- app/models/user.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/models/user.rb b/app/models/user.rb index 24cde688..18a508dd 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -253,6 +253,9 @@ 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)) + unless self.export_created_at.nil? + return (Time.now > self.export_created_at.in(1.week)) && !self.export_processing + end + !self.export_processing end end