Skip to content

Commit

Permalink
adding management links
Browse files Browse the repository at this point in the history
  • Loading branch information
jgowdyelastic committed Jul 13, 2020
1 parent f52200f commit c820cfd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion x-pack/plugins/ml/common/types/capabilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,13 @@ export function getPluginPrivileges() {
const userMlCapabilitiesKeys = Object.keys(userMlCapabilities);
const adminMlCapabilitiesKeys = Object.keys(adminMlCapabilities);
const allMlCapabilitiesKeys = [...adminMlCapabilitiesKeys, ...userMlCapabilitiesKeys];

// TODO: include ML in base privileges for the `8.0` release: https://github.com/elastic/kibana/issues/71422
const privilege = {
app: [PLUGIN_ID, 'kibana'],
excludeFromBasePrivileges: true,
management: {
insightsAndAlerting: ['jobsListLink'],
},
catalogue: [PLUGIN_ID],
savedObject: {
all: [],
Expand Down
3 changes: 3 additions & 0 deletions x-pack/plugins/ml/server/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ export class MlServerPlugin implements Plugin<MlPluginSetup, MlPluginStart, Plug
navLinkId: PLUGIN_ID,
app: [PLUGIN_ID, 'kibana'],
catalogue: [PLUGIN_ID],
management: {
insightsAndAlerting: ['jobsListLink'],
},
privileges: {
all: admin,
read: user,
Expand Down

0 comments on commit c820cfd

Please sign in to comment.