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:
commit
9b933b7520
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user