diff options
author | Alexis Reigel <mail@koffeinfrei.org> | 2017-06-15 10:57:50 +0300 |
---|---|---|
committer | Alexis Reigel <mail@koffeinfrei.org> | 2017-07-27 16:42:53 +0300 |
commit | 7b616d39efaa7cba933d17dfae010d393c18d057 (patch) | |
tree | f476d5ac7ef39ba01c77983e91315758eff54ddd /app/models/gpg_key.rb | |
parent | 8c4b6a32fcc5786383904fa1d5cf8b317bec7a7f (diff) |
gpg signature is only valid when key is verified
Diffstat (limited to 'app/models/gpg_key.rb')
-rw-r--r-- | app/models/gpg_key.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/gpg_key.rb b/app/models/gpg_key.rb index 26f9a3975c9..137abb60ddc 100644 --- a/app/models/gpg_key.rb +++ b/app/models/gpg_key.rb @@ -48,6 +48,10 @@ class GpgKey < ActiveRecord::Base end end + def verified? + emails_with_verified_status.any? { |_email, verified| verified } + end + private def extract_fingerprint |