Merge pull request #314 from glyptodon/fix-clone-perm-check

GUAC-1407: Do not show "Clone" button if source user does not yet exist.
This commit is contained in:
James Muehlner
2015-12-29 22:44:06 -08:00

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