users: do not call setGroups when ldap groups synced

This commit is contained in:
Girish Ramakrishnan
2024-01-20 00:32:49 +01:00
parent a1fd5bb996
commit bd1ab000f3
+2
View File
@@ -441,6 +441,8 @@ angular.module('Application').controller('UsersController', ['$scope', '$locatio
return;
}
if ($scope.config.ldapGroupsSynced) return; // cannot update user groups when syncing ldap groups
var groupIds = $scope.userEdit.selectedGroups.map(function (g) { return g.id; });
Client.setGroups(data.id, groupIds, function (error) {