summaryrefslogtreecommitdiff
path: root/app/helpers/x509_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers/x509_helper.rb')
-rw-r--r--app/helpers/x509_helper.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/helpers/x509_helper.rb b/app/helpers/x509_helper.rb
index c330b599d74..009635fb629 100644
--- a/app/helpers/x509_helper.rb
+++ b/app/helpers/x509_helper.rb
@@ -16,4 +16,8 @@ module X509Helper
rescue
{}
end
+
+ def x509_signature?(sig)
+ sig.is_a?(X509CommitSignature) || sig.is_a?(Gitlab::X509::Signature)
+ end
end