Skip to content

Commit

Permalink
Adding built-in types and alphabetizing (#19306)
Browse files Browse the repository at this point in the history
  • Loading branch information
kobelb committed May 22, 2018
1 parent d679cf5 commit 36e7a67
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function buildSavedObjectsReadPrivileges() {
}

function buildSavedObjectsPrivileges(actions) {
const objectTypes = ['config', 'dashboard', 'index-pattern', 'search', 'visualization', 'graph-workspace'];
const objectTypes = ['config', 'dashboard', 'graph-workspace', 'index-pattern', 'search', 'timelion-sheet', 'url', 'visualization'];
return objectTypes
.map(type => actions.map(action => `action:saved-objects/${type}/${action}`))
.reduce((acc, types) => [...acc, ...types], []);
Expand Down

0 comments on commit 36e7a67

Please sign in to comment.