fix(live-room): 제한 사용자의 입장과 토큰 발급을 차단한다

This commit is contained in:
2026-09-17 19:15:58 +09:00
parent 7c5d3874db
commit a8b16dca5a
2 changed files with 449 additions and 0 deletions
@@ -812,6 +812,14 @@ class LiveRoomService(
)
}
if (
member.role == MemberRole.CREATOR &&
room.member!!.id!! != member.id!! &&
!room.isAvailableJoinCreator
) {
throw SodaException(messageKey = "live.room.not_found")
}
if (room.member!!.id!! != member.id!! && !member.canEnter(room.genderRestriction)) {
throw SodaException(messageKey = "live.room.gender_restricted")
}
@@ -975,6 +983,18 @@ class LiveRoomService(
throw SodaException(messageKey = "live.room.info_not_found")
}
if (
member.role == MemberRole.CREATOR &&
room.member!!.id!! != member.id!! &&
!room.isAvailableJoinCreator
) {
throw SodaException(messageKey = "live.room.not_found")
}
if (room.member!!.id!! != member.id!! && !member.canEnter(room.genderRestriction)) {
throw SodaException(messageKey = "live.room.gender_restricted")
}
val currentTimeStamp = Date().time
val expireTimestamp = (currentTimeStamp + (60 * 60 * 24 * 1000)) / 1000