Repository: ambari Updated Branches: refs/heads/branch-1.7.0 70241f1f8 -> 6d4fe3b17
AMBARI-7036 restrict /#/experimental to only AMBARI.ADMIN.2 (ababiichuk) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/6d4fe3b1 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/6d4fe3b1 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/6d4fe3b1 Branch: refs/heads/branch-1.7.0 Commit: 6d4fe3b178e902fbb8afc9ab1c27afeae958dc7e Parents: 70241f1 Author: aBabiichuk <[email protected]> Authored: Mon Nov 3 17:12:25 2014 +0200 Committer: aBabiichuk <[email protected]> Committed: Mon Nov 3 19:33:28 2014 +0200 ---------------------------------------------------------------------- ambari-web/app/router.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/6d4fe3b1/ambari-web/app/router.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/router.js b/ambari-web/app/router.js index f5948be..9c27ba9 100644 --- a/ambari-web/app/router.js +++ b/ambari-web/app/router.js @@ -469,8 +469,10 @@ App.Router = Em.Router.extend({ experimental: Em.Route.extend({ route: '/experimental', enter: function (router, context) { - if (!App.get('isAdmin')) { - router.transitionTo("main"); + if (!App.get('isAdmin') || App.get('isOperator')) { + Em.run.next(function () { + router.transitionTo("main.dashboard.widgets"); + }); } }, connectOutlets: function (router, context) {
