diff --git a/install/ui/src/freeipa/navigation/menu_spec.js b/install/ui/src/freeipa/navigation/menu_spec.js index 9329694c1..0c3045969 100644 --- a/install/ui/src/freeipa/navigation/menu_spec.js +++ b/install/ui/src/freeipa/navigation/menu_spec.js @@ -326,6 +326,7 @@ nav.self_service = { { entity: 'user' }, { entity: 'otptoken' }, { + name: 'vault', entity: 'vault', facet: 'search', children: [ diff --git a/install/ui/src/freeipa/vault.js b/install/ui/src/freeipa/vault.js index b5cdc810a..36a4838ee 100644 --- a/install/ui/src/freeipa/vault.js +++ b/install/ui/src/freeipa/vault.js @@ -809,9 +809,11 @@ vault.config_sidebar_policy = function(spec) { vault.remove_vault_menu_item = function() { - if (!IPA.vault_enabled) { - menu.remove_item('network_services/vault'); - } + if (IPA.vault_enabled) return; + + var menu_location = IPA.is_selfservice ? 'vault' : 'network_services/vault'; + + menu.remove_item(menu_location); }; vault.my_vault_spec = make_my_vault_spec();