about summary refs log tree commit diff
path: root/config
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2019-03-23 14:07:46 +0100
committerGitHub <noreply@github.com>2019-03-23 14:07:46 +0100
commit08c3ce51aa0fa60e53dc0f84cb2f4ae0fbcb279e (patch)
tree100b11da476474bc21c2eab95f75a507a2291861 /config
parent9d0573f574f1861731ebfd08bdf0ca8bbd3b4dfb (diff)
Do not show identity proofs menu item unless there are identity proofs (#10350)
Diffstat (limited to 'config')
-rw-r--r--config/navigation.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/navigation.rb b/config/navigation.rb
index f136141b3..a6b2b6e4c 100644
--- a/config/navigation.rb
+++ b/config/navigation.rb
@@ -14,7 +14,7 @@ SimpleNavigation::Configuration.run do |navigation|
       settings.item :import, safe_join([fa_icon('cloud-upload fw'), t('settings.import')]), settings_import_url
       settings.item :export, safe_join([fa_icon('cloud-download fw'), t('settings.export')]), settings_export_url
       settings.item :authorized_apps, safe_join([fa_icon('list fw'), t('settings.authorized_apps')]), oauth_authorized_applications_url
-      settings.item :identity_proofs, safe_join([fa_icon('key fw'), t('settings.identity_proofs')]), settings_identity_proofs_path, highlights_on: %r{/settings/identity_proofs*}
+      settings.item :identity_proofs, safe_join([fa_icon('key fw'), t('settings.identity_proofs')]), settings_identity_proofs_path, highlights_on: %r{/settings/identity_proofs*}, if: proc { current_account.identity_proofs.exists? }
     end
 
     primary.item :relationships, safe_join([fa_icon('users fw'), t('settings.relationships')]), relationships_url