Merge pull request #522 from coreos-inc/privcheck

Fix repo count checker when the user service has not yet loaded
This commit is contained in:
josephschorr 2015-09-21 16:53:12 -04:00
commit e008f48f36
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);