Purge user settings from settings view elements

This commit is contained in:
Johannes Zellner
2023-08-10 00:05:56 +02:00
parent b5ab7851c1
commit 63ed900087
3 changed files with 14 additions and 1607 deletions

View File

@@ -16,7 +16,6 @@ angular.module('Application').controller('UsersController', ['$scope', '$locatio
$scope.groupsById = { };
$scope.config = Client.getConfig();
$scope.userInfo = Client.getUserInfo();
$scope.domains = [];
$scope.roles = [];
$scope.allUsers = []; // all the users and not just current page, have to load this for group assignment
@@ -911,17 +910,8 @@ angular.module('Application').controller('UsersController', ['$scope', '$locatio
});
}
function getAllDomains() {
Client.getDomains(function (error, domains) {
if (error) return console.error('Unable to get domains:', error);
$scope.domains = domains;
});
}
Client.onReady(function () {
refresh();
if ($scope.user.isAtLeastAdmin) getAllDomains();
refreshAllUsers();
// Order matters for permissions used in canEdit