X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fpages%2FLogoutPage.kt;fp=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fpages%2FLogoutPage.kt;h=4659d039f695c07ba5b1248fd19bc2795bc436d6;hp=5adefad69860eae763d956b300bf92e09741ca2e;hb=fc8e9ea5c978d2f5a00894e093364ae62f18934b;hpb=1557106d0e373f7efc15faed65f69eb567613a45 diff --git a/src/main/kotlin/net/pterodactylus/sone/web/pages/LogoutPage.kt b/src/main/kotlin/net/pterodactylus/sone/web/pages/LogoutPage.kt index 5adefad..4659d03 100644 --- a/src/main/kotlin/net/pterodactylus/sone/web/pages/LogoutPage.kt +++ b/src/main/kotlin/net/pterodactylus/sone/web/pages/LogoutPage.kt @@ -20,7 +20,7 @@ class LogoutPage @Inject constructor(template: Template, webInterface: WebInterf } override fun isEnabled(toadletContext: ToadletContext): Boolean = - if (webInterface.core.preferences.isRequireFullAccess && !toadletContext.isAllowedFullAccess) { + if (webInterface.core.preferences.requireFullAccess && !toadletContext.isAllowedFullAccess) { false } else getCurrentSone(toadletContext) != null && webInterface.core.localSones.size != 1