Purge user settings from settings view elements
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user