mirror of
https://github.com/Sagit-chu/flvx.git
synced 2026-10-11 03:36:37 +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);
|
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);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user