mirror of
https://github.com/Sagit-chu/flvx.git
synced 2026-09-29 16:06:36 +08:00
fix: always create group grants for existing user tunnel pairs
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user