fix: always create group grants for existing user tunnel pairs

This commit is contained in:
sagit
2026-02-06 08:46:42 +00:00
parent 06a45a87f6
commit 27a32b3ff4
@@ -460,11 +460,9 @@ public class GroupServiceImpl implements GroupService {
}
long existingGrantCount = totalGrantCountMap.getOrDefault(userTunnelId, 0L);
if (existingGrantCount > 0L) {
createGrant(userGroupId, tunnelGroupId, userTunnelId, now);
currentGrantUserTunnelIds.add(userTunnelId);
totalGrantCountMap.put(userTunnelId, existingGrantCount + 1L);
}
createGrant(userGroupId, tunnelGroupId, userTunnelId, now);
currentGrantUserTunnelIds.add(userTunnelId);
totalGrantCountMap.put(userTunnelId, existingGrantCount + 1L);
}
}
}