X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fajax%2FLoggedInJsonPage.kt;h=d1afaec114c86c41fa1850a1d408225d042cbcd9;hb=ca45de0dcbd2e361ab630bbee1d47ff6cf34d97c;hp=5cdee64ac538e9da1ead23dafa76d0fe7c6cabac;hpb=7cb7c8616e8504cfccde43926f7dbc97fafef277;p=Sone.git diff --git a/src/main/kotlin/net/pterodactylus/sone/web/ajax/LoggedInJsonPage.kt b/src/main/kotlin/net/pterodactylus/sone/web/ajax/LoggedInJsonPage.kt index 5cdee64..d1afaec 100644 --- a/src/main/kotlin/net/pterodactylus/sone/web/ajax/LoggedInJsonPage.kt +++ b/src/main/kotlin/net/pterodactylus/sone/web/ajax/LoggedInJsonPage.kt @@ -7,9 +7,9 @@ import net.pterodactylus.sone.web.page.FreenetRequest /** * Base JSON page for all pages that require the user to be logged in. */ -open class LoggedInJsonPage(path: String, webInterface: WebInterface) : JsonPage(path, webInterface) { +open class LoggedInJsonPage(webInterface: WebInterface) : JsonPage(webInterface) { - final override fun requiresLogin() = true + final override val requiresLogin = true final override fun createJsonObject(request: FreenetRequest) = createJsonObject(getCurrentSone(request.toadletContext)!!, request)