oops
authorTheSaminator <TheSaminator@users.noreply.github.com>
Tue, 1 Mar 2022 13:09:56 +0000 (08:09 -0500)
committerTheSaminator <TheSaminator@users.noreply.github.com>
Tue, 1 Mar 2022 13:09:56 +0000 (08:09 -0500)
src/jvmMain/kotlin/starshipfights/info/views_user.kt

index 2c37fceaffdd3075f6649a85b8a60d7a920d8076..beb926e999bff10df86fb8fe545a1ef68be07e8e 100644 (file)
@@ -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