[Profiling] Space-specific feature privileges (#154734)

This commit is contained in:
Cauê Marcondes 2023-04-11 20:35:48 -04:00 committed by GitHub
parent 2f46929805
commit 2f001a2f8d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 31 additions and 28 deletions

View file

@ -17,13 +17,13 @@ export const PROFILING_FEATURE = {
}),
order: 1200,
category: DEFAULT_APP_CATEGORIES.observability,
app: ['kibana'],
catalogue: [],
app: [PROFILING_SERVER_FEATURE_ID, 'ux', 'kibana'],
catalogue: [PROFILING_SERVER_FEATURE_ID],
// see x-pack/plugins/features/common/feature_kibana_privileges.ts
privileges: {
all: {
app: ['kibana'],
catalogue: [],
app: [PROFILING_SERVER_FEATURE_ID, 'ux', 'kibana'],
catalogue: [PROFILING_SERVER_FEATURE_ID],
savedObject: {
all: [],
read: [],
@ -31,13 +31,13 @@ export const PROFILING_FEATURE = {
ui: ['show'],
},
read: {
app: ['kibana'],
catalogue: [],
app: [PROFILING_SERVER_FEATURE_ID, 'ux', 'kibana'],
catalogue: [PROFILING_SERVER_FEATURE_ID],
savedObject: {
all: [],
read: [],
},
ui: [],
ui: ['show'],
},
},
};