From abd19a6d6665d476d8ee9df38c7ab6ee1b2db40f Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Tue, 29 Dec 2015 22:36:03 -0800 Subject: [PATCH] GUAC-1407: Do not show "Clone" button if source user does not yet exist. --- .../main/webapp/app/manage/controllers/manageUserController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guacamole/src/main/webapp/app/manage/controllers/manageUserController.js b/guacamole/src/main/webapp/app/manage/controllers/manageUserController.js index 125d41964..e4c7886a7 100644 --- a/guacamole/src/main/webapp/app/manage/controllers/manageUserController.js +++ b/guacamole/src/main/webapp/app/manage/controllers/manageUserController.js @@ -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