Fix users view for user manager role

This commit is contained in:
Johannes Zellner
2020-02-24 17:49:36 +01:00
parent 7ce4effc2d
commit a78eec79a8

View File

@@ -647,6 +647,7 @@ angular.module('Application').controller('UsersController', ['$scope', '$locatio
if (error) return console.error('Unable to get external ldap config.', error);
$scope.externalLdap.currentConfig = result;
$scope.externalLdap.checkStatus();
});
}
@@ -667,10 +668,7 @@ angular.module('Application').controller('UsersController', ['$scope', '$locatio
};
Client.onReady(refresh);
Client.onReady(function () {
loadExternalLdapConfig();
$scope.externalLdap.checkStatus();
});
Client.onReady(function () { if ($scope.user.isAtLeastAdmin) loadExternalLdapConfig(); });
Client.onReady(function () {
Client.getUsers(function (error, results) {
if (error) return console.error(error);