Add an explicit Client.getAllUsers function
This commit is contained in:
@@ -203,7 +203,7 @@ angular.module('Application').controller('UsersController', ['$scope', '$locatio
|
||||
|
||||
// supported types are 'json' and 'csv'
|
||||
$scope.userExport = function (type) {
|
||||
Client.getUsers(function (error, result) {
|
||||
Client.getAllUsers(function (error, result) {
|
||||
if (error) {
|
||||
Client.error('Failed to list users. Full error in the webinspector.');
|
||||
return console.error('Failed to list users.', error);
|
||||
@@ -1104,7 +1104,7 @@ angular.module('Application').controller('UsersController', ['$scope', '$locatio
|
||||
};
|
||||
|
||||
function refreshAllUsers() { // this loads all users on Cloudron, not just current page
|
||||
Client.getUsers(function (error, results) {
|
||||
Client.getAllUsers(function (error, results) {
|
||||
if (error) return console.error(error);
|
||||
|
||||
$scope.allUsers = results;
|
||||
|
||||
Reference in New Issue
Block a user