fix(live-room): 제한 사용자의 입장과 토큰 발급을 차단한다
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user