diff --git a/modules/articles/client/config/articles.client.routes.js b/modules/articles/client/config/articles.client.routes.js index fab0368c35..ab0337a695 100644 --- a/modules/articles/client/config/articles.client.routes.js +++ b/modules/articles/client/config/articles.client.routes.js @@ -16,7 +16,6 @@ angular.module('articles').config(['$stateProvider', state('articles.list', { url: '', templateUrl: 'modules/articles/views/list-articles.client.view.html' - }). state('articles.create', { url: '/create', diff --git a/modules/core/client/app/init.js b/modules/core/client/app/init.js index 84b64d4bc8..94b23b80d5 100644 --- a/modules/core/client/app/init.js +++ b/modules/core/client/app/init.js @@ -18,6 +18,7 @@ angular.module(ApplicationConfiguration.applicationModuleName).run(function($roo toState.data.roles.forEach(function (role) { if (Authentication.user.roles !== undefined && Authentication.user.roles.indexOf(role) !== -1) { allowed = true; + return true; } }); diff --git a/modules/users/client/controllers/settings/settings.client.controller.js b/modules/users/client/controllers/settings/settings.client.controller.js index 7c8d1b6569..46c217cb0e 100644 --- a/modules/users/client/controllers/settings/settings.client.controller.js +++ b/modules/users/client/controllers/settings/settings.client.controller.js @@ -1,7 +1,7 @@ 'use strict'; -angular.module('users').controller('SettingsController', ['$scope', '$location', 'Authentication', - function($scope, $location, Authentication) { +angular.module('users').controller('SettingsController', ['$scope', 'Authentication', + function($scope, Authentication) { $scope.user = Authentication.user; } ]);