X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fajax%2FLoggedInJsonPage.kt;h=388c2893d5c9b37f1b367c15b649192f85e5bf76;hb=7afd66a21244e757b6b49ba96bb3989bc55a2abf;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..388c289 100644 --- a/src/main/kotlin/net/pterodactylus/sone/web/ajax/LoggedInJsonPage.kt +++ b/src/main/kotlin/net/pterodactylus/sone/web/ajax/LoggedInJsonPage.kt @@ -9,12 +9,12 @@ import net.pterodactylus.sone.web.page.FreenetRequest */ open class LoggedInJsonPage(path: String, webInterface: WebInterface) : JsonPage(path, 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") }