Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-05-07 00:10:00 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-05-07 00:10:00 +0300
commit5f0e3773e9695fd0c9e92ea9180c8a1f5cfaa5c5 (patch)
tree64fc0ecbf508a24345ffe11d856fd13124c2e464 /app/helpers/x509_helper.rb
parent73886079f3f877ffb8f8938d700643a5e99bc849 (diff)
Add latest changes from gitlab-org/gitlab@master
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