GUAC-1407: Do not show "Clone" button if source user does not yet exist.

This commit is contained in:
Michael Jumper
2015-12-29 22:36:03 -08:00
parent aa097cb880
commit abd19a6d66

View File

@@ -404,7 +404,7 @@ angular.module('manage').controller('manageUserController', ['$scope', '$injecto
dataSource = dataSource || selectedDataSource;
// If we are not editing an existing user, we cannot clone
if (!username)
if (!$scope.userExists(selectedDataSource))
return false;
// The administrator can always clone users