users: do not call setGroups when ldap groups synced
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user