X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fpages%2FLoginPage.kt;fp=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fpages%2FLoginPage.kt;h=4313a596d5806f3e0aa6dca04eec45e7fd2c5196;hp=c6c50bb2efc3b03891c8e52f611ea13f1967b617;hb=fc8e9ea5c978d2f5a00894e093364ae62f18934b;hpb=1557106d0e373f7efc15faed65f69eb567613a45 diff --git a/src/main/kotlin/net/pterodactylus/sone/web/pages/LoginPage.kt b/src/main/kotlin/net/pterodactylus/sone/web/pages/LoginPage.kt index c6c50bb..4313a59 100644 --- a/src/main/kotlin/net/pterodactylus/sone/web/pages/LoginPage.kt +++ b/src/main/kotlin/net/pterodactylus/sone/web/pages/LoginPage.kt @@ -33,7 +33,7 @@ class LoginPage @Inject constructor(template: Template, webInterface: WebInterfa getCurrentSone(freenetRequest.toadletContext)?.let { "index.html" } override fun isEnabled(toadletContext: ToadletContext) = when { - webInterface.core.preferences.isRequireFullAccess && !toadletContext.isAllowedFullAccess -> false + webInterface.core.preferences.requireFullAccess && !toadletContext.isAllowedFullAccess -> false else -> getCurrentSone(toadletContext, false) == null }