Redirect to the /setup page automatically in the ER when not fully setup

This commit is contained in:
Joseph Schorr 2015-09-02 14:59:54 -04:00
parent b76298121d
commit 0a91a1d9d8
2 changed files with 6 additions and 1 deletions

View file

@ -12,6 +12,11 @@
$scope.currentScreenshot = 'repo-view';
$scope.userRegistered = false;
if (!Config['SETUP_COMPLETE'] && !Features.BILLING) {
$location.path('/setup');
return;
}
UserService.updateUserIn($scope, function(user) {
if (!user.anonymous) {
$location.path('/repository');