diff --git a/src/views/apps.js b/src/views/apps.js index beaab129a..e05718614 100644 --- a/src/views/apps.js +++ b/src/views/apps.js @@ -3,7 +3,7 @@ /* global angular:false */ /* global $:false */ -angular.module('Application').controller('AppsController', ['$scope', '$location', '$timeout', '$interval', 'Client', function ($scope, $location, $timeout, $interval, Client) { +angular.module('Application').controller('AppsController', ['$scope', '$timeout', '$interval', 'Client', function ($scope, $timeout, $interval, Client) { var ALL_DOMAINS_DOMAIN = { _alldomains: true, domain: 'All Domains' }; // dummy record for the single select filter $scope.HOST_PORT_MIN = 1024; @@ -16,8 +16,6 @@ angular.module('Application').controller('AppsController', ['$scope', '$location $scope.config = Client.getConfig(); $scope.user = Client.getUserInfo(); $scope.domains = []; - $scope.groups = []; - $scope.users = []; $scope.backupsEnabled = true; $scope.disableIndexingTemplate = '# Disable search engine indexing\n\nUser-agent: *\nDisallow: /'; @@ -112,31 +110,6 @@ angular.module('Application').controller('AppsController', ['$scope', '$location $scope.appPostInstallConfirm.confirmed = false; }; - function fetchUsers() { - Client.getUsers(function (error, users) { - if (error) { - console.error(error); - return $timeout(fetchUsers, 5000); - } - - // ensure we have something to work with in the access restriction dropdowns - users.forEach(function (user) { user.display = user.username || user.email; }); - - $scope.users = users; - }); - } - - function fetchGroups() { - Client.getGroups(function (error, groups) { - if (error) { - console.error(error); - return $timeout(fetchUsers, 5000); - } - - $scope.groups = groups; - }); - } - function getDomains() { Client.getDomains(function (error, result) { if (error) { @@ -165,8 +138,6 @@ angular.module('Application').controller('AppsController', ['$scope', '$location refreshInstalledApps(); // refresh the new list immediately when switching from another view (appstore) if ($scope.user.admin) { - fetchUsers(); - fetchGroups(); getDomains(); getBackupConfig(); }