about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--app/controllers/concerns/signature_verification.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/concerns/signature_verification.rb b/app/controllers/concerns/signature_verification.rb
index 42f4d969e..e58f684e7 100644
--- a/app/controllers/concerns/signature_verification.rb
+++ b/app/controllers/concerns/signature_verification.rb
@@ -25,7 +25,7 @@ module SignatureVerification
 
   def signed_request_account
     if defined?(@signed_request_account)
-      if @signed_request_account.known?
+      if @signed_request_account&.known?
         return @signed_request_account
       else
         @signature_verification_failure_reason = 'Not authorized'
@@ -67,7 +67,7 @@ module SignatureVerification
       @signature_verification_failure_reason = "Public key not found for key #{signature_params['keyId']}"
       @signed_request_account = nil
       return
-    elsif !account.known?
+    elsif !account&.known?
       @signature_verification_failure_reason = 'Not authorized'
       @signed_request_account = nil
       return