group: cannot set name of ldap group

This commit is contained in:
Girish Ramakrishnan
2024-01-19 22:28:48 +01:00
parent a8d37b917a
commit a1217e52c8
7 changed files with 80 additions and 35 deletions
+2 -2
View File
@@ -1763,12 +1763,12 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
});
};
Client.prototype.updateGroup = function (id, name, callback) {
Client.prototype.setGroupName = function (id, name, callback) {
var data = {
name: name
};
post('/api/v1/groups/' + id, data, null, function (error, data, status) {
put('/api/v1/groups/' + id + '/name', data, null, function (error, data, status) {
if (error) return callback(error);
if (status !== 200) return callback(new ClientError(status, data));
+1 -1
View File
@@ -610,7 +610,7 @@ angular.module('Application').controller('UsersController', ['$scope', '$locatio
if ($scope.groupEdit.source) return $scope.groupEdit.updateAccessRestriction(); // cannot update name or members of external groups
Client.updateGroup($scope.groupEdit.groupInfo.id, $scope.groupEdit.name, function (error) {
Client.setGroupName($scope.groupEdit.groupInfo.id, $scope.groupEdit.name, function (error) {
if (error) {
$scope.groupEdit.busy = false;