Fix repo count checker when the user service has not yet loaded

Fixes #521
This commit is contained in:
Joseph Schorr 2015-09-21 16:42:16 -04:00
parent a47bfa201e
commit 1f90aa5b59
2 changed files with 1 additions and 5 deletions

View file

@ -23,7 +23,7 @@ angular.module('quay').directive('repoCountChecker', function () {
}
$scope.checkingPlan = true;
$scope.isUserNamespace = UserService.isUserNamespace($scope.namespace);
$scope.isUserNamespace = !UserService.isOrganization($scope.namespace);
ApiService.getPrivateAllowed($scope.isUserNamespace ? null : $scope.namespace).then(function(resp) {
$scope.checkingPlan = false;

View file

@ -126,10 +126,6 @@ function(ApiService, CookieService, $rootScope, Config) {
return userResponse;
};
userService.isUserNamespace = function(namespace) {
return namespace == userResponse.username;
};
// Update the user in the root scope.
userService.updateUserIn($rootScope);