Hide unneeded user elements when in LDAP

This commit is contained in:
Joseph Schorr 2015-05-11 13:32:24 -04:00
parent 1c83def15b
commit 4feb2a2032
3 changed files with 11 additions and 5 deletions

View file

@ -17,7 +17,10 @@ angular.module('quay').directive('userSetup', function () {
'signedIn': '&signedIn',
'userRegistered': '&userRegistered'
},
controller: function($scope, $location, $timeout, ApiService, KeyService, UserService) {
controller: function($scope, $location, $timeout, ApiService, KeyService, UserService, Config, Features) {
$scope.Config = Config;
$scope.Features = Features;
$scope.sendRecovery = function() {
$scope.sendingRecovery = true;
@ -39,7 +42,7 @@ angular.module('quay').directive('userSetup', function () {
};
$scope.hasSignedIn = function() {
return UserService.hasEverLoggedIn();
return UserService.hasEverLoggedIn() || Config.AUTHENTICATION_TYPE != 'Database';
};
}
};