GUAC-1407: Only the current data source is relevant when cloning. Do not show the others.

This commit is contained in:
Michael Jumper
2015-12-29 22:55:57 -08:00
parent 9b933b7520
commit 88d76fb971

View File

@@ -492,6 +492,10 @@ angular.module('manage').controller('manageUserController', ['$scope', '$injecto
if (!linked && readOnly)
return;
// Only the selected data source is relevant when cloning
if (cloneSourceUsername && dataSource !== selectedDataSource)
return;
// Determine class name based on read-only / linked status
var className;
if (readOnly) className = 'read-only';