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
/
CreateSonePage.kt
diff --git
a/src/main/kotlin/net/pterodactylus/sone/web/pages/CreateSonePage.kt
b/src/main/kotlin/net/pterodactylus/sone/web/pages/CreateSonePage.kt
index
27b5ad4
..
a0fe7cb
100644
(file)
--- a/
src/main/kotlin/net/pterodactylus/sone/web/pages/CreateSonePage.kt
+++ b/
src/main/kotlin/net/pterodactylus/sone/web/pages/CreateSonePage.kt
@@
-37,7
+37,7
@@
class CreateSonePage @Inject constructor(template: Template, webInterface: WebIn
}
override fun isEnabled(toadletContext: ToadletContext) =
}
override fun isEnabled(toadletContext: ToadletContext) =
- 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)