From a92550137528856b5270f0204de6152a5a5e2a1f Mon Sep 17 00:00:00 2001 From: Linus Pahl Date: Tue, 17 Dec 2024 09:19:25 +0100 Subject: [PATCH] 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)