GUAC-1407: Ensure that permissions referring to the cloned user correctly carry over.

This commit is contained in:
James Muehlner
2015-12-28 23:01:33 -08:00
parent 5a4c6db6d1
commit 18751c0e03
3 changed files with 45 additions and 7 deletions

View File

@@ -350,7 +350,7 @@ angular.module('manage').controller('manageConnectionController', ['$scope', '$i
* Cancels all pending edits, returning to the management page.
*/
$scope.cancel = function cancel() {
$location.path('/settings/' + encodeURIComponent($scope.selectedDataSource) + '/connections');
$location.url('/settings/' + encodeURIComponent($scope.selectedDataSource) + '/connections');
};
/**
@@ -372,7 +372,7 @@ angular.module('manage').controller('manageConnectionController', ['$scope', '$i
// Save the connection
connectionService.saveConnection($scope.selectedDataSource, $scope.connection)
.success(function savedConnection() {
$location.path('/settings/' + encodeURIComponent($scope.selectedDataSource) + '/connections');
$location.url('/settings/' + encodeURIComponent($scope.selectedDataSource) + '/connections');
})
// Notify of any errors