From a92550137528856b5270f0204de6152a5a5e2a1f Mon Sep 17 00:00:00 2001 From: Linus Pahl Date: Tue, 17 Dec 2024 09:19:25 +0100 Subject: [PATCH 1/2] Enable defining permissions for `navigation` web interface plugins. --- graylog2-web-interface/src/@types/graylog-web-plugin/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/graylog2-web-interface/src/@types/graylog-web-plugin/index.d.ts b/graylog2-web-interface/src/@types/graylog-web-plugin/index.d.ts index dd5da4d02769..07551e8da009 100644 --- a/graylog2-web-interface/src/@types/graylog-web-plugin/index.d.ts +++ b/graylog2-web-interface/src/@types/graylog-web-plugin/index.d.ts @@ -56,6 +56,7 @@ type PluginNavigation = { perspective?: string; BadgeComponent?: React.ComponentType<{ text: string }>; position?: 'last' | undefined, + permissions?: string | Array, useIsValidLicense?: () => boolean, } & (PluginNavigationLink | PluginNavigationDropdown) From 430c54e8e6eec31e2b1d8c84c71b31be3e33aaa0 Mon Sep 17 00:00:00 2001 From: Linus Pahl Date: Tue, 17 Dec 2024 09:31:34 +0100 Subject: [PATCH 2/2] Adding changelog. --- changelog/unreleased/pr-21205.toml | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 changelog/unreleased/pr-21205.toml diff --git a/changelog/unreleased/pr-21205.toml b/changelog/unreleased/pr-21205.toml new file mode 100644 index 000000000000..44cd47bce32c --- /dev/null +++ b/changelog/unreleased/pr-21205.toml @@ -0,0 +1,8 @@ +type = "a" +message = "Enable defining required permissions for navigation web interface plugin." + +pulls = ["21205"] +details.user = """ +Before it was only possible to define required permissions for a navigation dropdown item. +""" +