mirror of
https://github.com/Sagit-chu/flvx.git
synced 2026-10-12 20:26:37 +08:00
fix: always create group grants for existing user tunnel pairs
This commit is contained in:
@@ -460,14 +460,12 @@ public class GroupServiceImpl implements GroupService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
long existingGrantCount = totalGrantCountMap.getOrDefault(userTunnelId, 0L);
|
long existingGrantCount = totalGrantCountMap.getOrDefault(userTunnelId, 0L);
|
||||||
if (existingGrantCount > 0L) {
|
|
||||||
createGrant(userGroupId, tunnelGroupId, userTunnelId, now);
|
createGrant(userGroupId, tunnelGroupId, userTunnelId, now);
|
||||||
currentGrantUserTunnelIds.add(userTunnelId);
|
currentGrantUserTunnelIds.add(userTunnelId);
|
||||||
totalGrantCountMap.put(userTunnelId, existingGrantCount + 1L);
|
totalGrantCountMap.put(userTunnelId, existingGrantCount + 1L);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
List<GroupPermissionGrant> staleGrants = new ArrayList<>();
|
List<GroupPermissionGrant> staleGrants = new ArrayList<>();
|
||||||
for (GroupPermissionGrant grant : currentGrants) {
|
for (GroupPermissionGrant grant : currentGrants) {
|
||||||
|
|||||||
Reference in New Issue
Block a user