X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fajax%2FLoggedInJsonPage.kt;h=d1afaec114c86c41fa1850a1d408225d042cbcd9;hb=03cec6a6772c2d836d94864adddaf544cbe9d72f;hp=acf1d7335e3dd123fe5491c98514011e4cc9499a;hpb=9e697ac643d11a2b7644a948732674eea195718a;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 acf1d73..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,14 +7,14 @@ 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) - open protected fun createJsonObject(currentSone: Sone, request: FreenetRequest) = + open protected fun createJsonObject(currentSone: Sone, request: FreenetRequest): JsonReturnObject = createErrorJsonObject("not-implemented") }