From: TheSaminator Date: Tue, 1 Mar 2022 13:09:56 +0000 (-0500) Subject: oops X-Git-Url: https://gitweb.starshipfights.net/?a=commitdiff_plain;h=344e64107f643a66fa836c5654399a886dafd9d4;p=starship-fights oops --- diff --git a/src/jvmMain/kotlin/starshipfights/info/views_user.kt b/src/jvmMain/kotlin/starshipfights/info/views_user.kt index 2c37fce..beb926e 100644 --- a/src/jvmMain/kotlin/starshipfights/info/views_user.kt +++ b/src/jvmMain/kotlin/starshipfights/info/views_user.kt @@ -24,7 +24,7 @@ suspend fun ApplicationCall.userPage(): HTML.() -> Unit { val user = User.get(userId)!! val currentUser = getUserSession() - val isCurrentUser = user.id == currentUser?.id + val isCurrentUser = user.id == currentUser?.user val hasOpenSessions = UserSession.locate( and(UserSession::user eq userId, UserSession::expiration gt Instant.now()) ) != null