Turn off all references and API calls to github login if the feature is disabled

This commit is contained in:
Joseph Schorr 2014-04-06 00:50:30 -04:00
parent 19a20a6c94
commit badf002e92
6 changed files with 22 additions and 9 deletions

View file

@ -1615,6 +1615,8 @@ function UserAdminCtrl($scope, $timeout, $location, ApiService, PlanService, Use
}
UserService.updateUserIn($scope, function(user) {
if (!Features.GITHUB_LOGIN) { return; }
$scope.cuser = jQuery.extend({}, user);
for (var i = 0; i < $scope.cuser.logins.length; i++) {