Skip to content

Commit bd588ff

Browse files
committed
address pr feedback
1 parent b310b48 commit bd588ff

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

x-pack/plugins/security/server/authorization/disable_ui_capabilities.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ export function disableUICapabilitiesFactory(
1818
logger: Logger,
1919
authz: AuthorizationServiceSetup
2020
) {
21+
// nav links are sourced from two places:
22+
// 1) The `navLinkId` property. This is deprecated and will be removed (https://github.com/elastic/kibana/issues/66217)
23+
// 2) The apps property. The Kibana Platform associates nav links to the app which registers it, in a 1:1 relationship.
24+
// This behavior is replacing the `navLinkId` property above.
2125
const featureNavLinkIds = features
2226
.flatMap((feature) => [feature.navLinkId, ...feature.app])
2327
.filter((navLinkId) => navLinkId != null);

0 commit comments

Comments
 (0)