From 344e64107f643a66fa836c5654399a886dafd9d4 Mon Sep 17 00:00:00 2001 From: TheSaminator Date: Tue, 1 Mar 2022 08:09:56 -0500 Subject: [PATCH] oops --- src/jvmMain/kotlin/starshipfights/info/views_user.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.25.1