groups: local groups can have remote and local users

This commit is contained in:
Girish Ramakrishnan
2024-02-28 16:42:17 +01:00
parent 50a069a7fa
commit 0d38e443d1
3 changed files with 21 additions and 16 deletions

View File

@@ -1734,8 +1734,8 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
});
};
Client.prototype.setGroups = function (userId, groupIds, callback) {
put('/api/v1/users/' + userId + '/groups', { groupIds: groupIds }, null, function (error, data, status) {
Client.prototype.setLocalGroups = function (userId, localGroupIds, callback) {
put('/api/v1/users/' + userId + '/groups', { groupIds: localGroupIds }, null, function (error, data, status) {
if (error) return callback(error);
if (status !== 204) return callback(new ClientError(status, data));