diff --git a/static/js/controllers.js b/static/js/controllers.js index 25745ff0e..5abee4f49 100644 --- a/static/js/controllers.js +++ b/static/js/controllers.js @@ -928,6 +928,10 @@ function V1Ctrl($scope, $location, UserService) { } function NewRepoCtrl($scope, $location, $http, UserService, Restangular, PlanService) { + $scope.$watch( function () { return UserService.currentUser(); }, function (currentUser) { + $scope.user = currentUser; + }, true); + $scope.repo = { 'is_public': 1, 'description': '', @@ -1016,14 +1020,6 @@ function NewRepoCtrl($scope, $location, $http, UserService, Restangular, PlanSer } }; - $scope.$watch( function () { return UserService.currentUser(); }, function (currentUser) { - $scope.user = currentUser; - - if ($scope.user.anonymous) { - $location.path('/signin/'); - } - }, true); - $scope.editDescription = function() { if (!$scope.markdownDescriptionEditor) { var converter = Markdown.getSanitizingConverter(); diff --git a/static/partials/new-repo.html b/static/partials/new-repo.html index dd02d2faa..30cdd2316 100644 --- a/static/partials/new-repo.html +++ b/static/partials/new-repo.html @@ -1,12 +1,16 @@ -