mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-07 13:41:21 +00:00
GUAC-1407: Do not show "Clone" button if source user does not yet exist.
This commit is contained in:
@@ -404,7 +404,7 @@ angular.module('manage').controller('manageUserController', ['$scope', '$injecto
|
|||||||
dataSource = dataSource || selectedDataSource;
|
dataSource = dataSource || selectedDataSource;
|
||||||
|
|
||||||
// If we are not editing an existing user, we cannot clone
|
// If we are not editing an existing user, we cannot clone
|
||||||
if (!username)
|
if (!$scope.userExists(selectedDataSource))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// The administrator can always clone users
|
// The administrator can always clone users
|
||||||
|
Reference in New Issue
Block a user