remove redundant call to fetch user info

main.js already does this
This commit is contained in:
Girish Ramakrishnan
2018-01-08 09:42:07 -08:00
parent 044c25311f
commit e0c894d333

View File

@@ -498,17 +498,13 @@ angular.module('Application').controller('AppsController', ['$scope', '$location
}
Client.onReady(function () {
Client.refreshUserInfo(function (error) {
if (error) return console.error(error);
if ($scope.user.admin) {
fetchUsers();
fetchGroups();
getDomains();
getMailConfig();
getBackupConfig();
}
});
if ($scope.user.admin) {
fetchUsers();
fetchGroups();
getDomains();
getMailConfig();
getBackupConfig();
}
});
// setup all the dialog focus handling