Redirect to the /setup page automatically in the ER when not fully setup
This commit is contained in:
parent
b76298121d
commit
0a91a1d9d8
2 changed files with 6 additions and 1 deletions
|
@ -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');
|
||||
|
|
Reference in a new issue