Replace Preferences with Kotlin version
[Sone.git] / src / main / kotlin / net / pterodactylus / sone / web / pages / CreateSonePage.kt
index 27b5ad4..a0fe7cb 100644 (file)
@@ -37,7 +37,7 @@ class CreateSonePage @Inject constructor(template: Template, webInterface: WebIn
        }
 
        override fun isEnabled(toadletContext: ToadletContext) =
-                       if (webInterface.core.preferences.isRequireFullAccess && !toadletContext.isAllowedFullAccess) {
+                       if (webInterface.core.preferences.requireFullAccess && !toadletContext.isAllowedFullAccess) {
                                false
                        } else {
                                (getCurrentSone(toadletContext) == null) || (webInterface.core.localSones.size == 1)