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

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));