Skip to content

Commit

Permalink
revert 6a3015e
Browse files Browse the repository at this point in the history
  • Loading branch information
Spencer Alger committed Dec 11, 2014
1 parent 226c052 commit 5a14b98
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/kibana/utils/routes/_setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ define(function (require) {
var firstNoDefaultError = true;

var rootSearchSource = Private(require('components/courier/data_source/_root_search_source'));
var allowedRoutesRE = /^\/settings\//;

return {
routeSetupWork: function () {
Expand All @@ -17,11 +18,7 @@ define(function (require) {
])
.then(function () {
var path = $route.current.$$route.originalPath;
var allowedRoutes = [
'/settings/indices/',
'/settings/about'
];
if (allowedRoutes.indexOf(path) < 0) {
if (!path.match(allowedRoutesRE)) {
return courier.indexPatterns.getIds()
.then(function (patterns) {
if (!config.get('defaultIndex')) {
Expand Down

0 comments on commit 5a14b98

Please sign in to comment.