From 7fcb63559a917c51d3348cac99b74e5821ff71cc Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Fri, 10 May 2024 17:03:19 +0200 Subject: [PATCH] test(samba): refs #5770 remove roleHasUpdated --- modules/account/back/models/samba-config.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/account/back/models/samba-config.js b/modules/account/back/models/samba-config.js index 21fc24b3e..f8bab6db3 100644 --- a/modules/account/back/models/samba-config.js +++ b/modules/account/back/models/samba-config.js @@ -307,15 +307,15 @@ module.exports = Self => { // OBTENER LDAPSJS MIEMBROS ROLES for await (const role of rolesToUpdate) { - let roleHasUpdated = false; + // let roleHasUpdated = false; if (roles.get(role).$description != sambaCurrentGroups.get(role).description) { await this.deleteRole(role); await this.addRole(roles.get(role)); - roleHasUpdated = true; + // roleHasUpdated = true; } const users = usersMap.get(role); const currentUsers = this.handleRoleMembers(await this.getRoleMembers(role)); - if (!roleHasUpdated && currentUsers.length === 0 && users.length === 0) continue; + if (currentUsers.length === 0 && users.length === 0) continue; await this.handleUsersRole(role, currentUsers, users); } }