GUACAMOLE-220: Merge rely on managementButtons directive to handle redirect after save.
This commit is contained in:
commit
242448060f
1 file changed
+2
-4
@@ -416,10 +416,8 @@ angular.module('manage').controller('manageUserController', ['$scope', '$injecto
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Upon success, save any changed permissions
|
// Upon success, save any changed permissions
|
||||||
return permissionService.patchPermissions($scope.dataSource, $scope.user.username, $scope.permissionsAdded, $scope.permissionsRemoved)
|
return permissionService.patchPermissions($scope.dataSource, $scope.user.username,
|
||||||
.then(function patchedUserPermissions() {
|
$scope.permissionsAdded, $scope.permissionsRemoved);
|
||||||
$location.url('/settings/users');
|
|
||||||
});
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user