about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--app/helpers/autoreject_helper.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/helpers/autoreject_helper.rb b/app/helpers/autoreject_helper.rb
index 4c66b46f9..f11e32530 100644
--- a/app/helpers/autoreject_helper.rb
+++ b/app/helpers/autoreject_helper.rb
@@ -57,7 +57,8 @@ module AutorejectHelper
   end
 
   def autoreject?(uri = nil)
-    if (@options && @options[:imported]) || should_reject?(uri)
+    return false if @options && @options[:imported]
+    if should_reject?(uri)
       if @json
         Rails.logger.info("Auto-rejected #{@json['id']} (#{@json['type']})")
       elsif uri