projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replace Preferences with Kotlin version
[Sone.git]
/
src
/
main
/
kotlin
/
net
/
pterodactylus
/
sone
/
web
/
pages
/
LogoutPage.kt
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
(file)
--- 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 =
}
override fun isEnabled(toadletContext: ToadletContext): Boolean =
- if (webInterface.core.preferences.
isR
equireFullAccess && !toadletContext.isAllowedFullAccess) {
+ if (webInterface.core.preferences.
r
equireFullAccess && !toadletContext.isAllowedFullAccess) {
false
} else
getCurrentSone(toadletContext) != null && webInterface.core.localSones.size != 1
false
} else
getCurrentSone(toadletContext) != null && webInterface.core.localSones.size != 1