X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fpages%2FLogoutPage.kt;h=4659d039f695c07ba5b1248fd19bc2795bc436d6;hb=50df1b89ec5ffdda556713c18e5e67365b84b41a;hp=5adefad69860eae763d956b300bf92e09741ca2e;hpb=c4512262c3347e76a92e9273faabc20f8320101c;p=Sone.git 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