diff --git a/docs-web/src/main/webapp/src/app/docs/controller/Main.js b/docs-web/src/main/webapp/src/app/docs/controller/Main.js index 0716e640..5dc8ad0d 100644 --- a/docs-web/src/main/webapp/src/app/docs/controller/Main.js +++ b/docs-web/src/main/webapp/src/app/docs/controller/Main.js @@ -5,7 +5,11 @@ */ angular.module('docs').controller('Main', function($scope, $rootScope, $state, User) { User.userInfo().then(function(data) { - if (!data.anonymous) { + if (data.anonymous) { + $state.go('login', {}, { + location: 'replace' + }); + } else { $state.go('document.default', {}, { location: 'replace' });