group: cannot set name of ldap group
This commit is contained in:
@@ -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));
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user