Rename session-related Methode in web interface
[Sone.git] / src / main / java / net / pterodactylus / sone / web / ajax / TrustAjaxPage.java
index 3661cb1..586366e 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Sone - TrustAjaxPage.java - Copyright © 2011–2013 David Roden
+ * Sone - TrustAjaxPage.java - Copyright © 2011–2016 David Roden
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -47,7 +47,7 @@ public class TrustAjaxPage extends JsonPage {
         */
        @Override
        protected JsonReturnObject createJsonObject(FreenetRequest request) {
-               Sone currentSone = getCurrentSone(request.getToadletContext(), false);
+               Sone currentSone = getCurrentSoneWithoutCreatingSession(request.getToadletContext());
                if (currentSone == null) {
                        return createErrorJsonObject("auth-required");
                }