From 053ddb3ed40d5189f8c34c9b5260be8e49e37138 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Thu, 14 Oct 2010 09:22:56 +0200 Subject: [PATCH] =?utf8?q?Only=20show=20=E2=80=9Ccreate=20Sone=E2=80=9D=20?= =?utf8?q?in=20menu=20when=20not=20logged=20in.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/main/java/net/pterodactylus/sone/web/CreateSonePage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/pterodactylus/sone/web/CreateSonePage.java b/src/main/java/net/pterodactylus/sone/web/CreateSonePage.java index f15fe04..0174b76 100644 --- a/src/main/java/net/pterodactylus/sone/web/CreateSonePage.java +++ b/src/main/java/net/pterodactylus/sone/web/CreateSonePage.java @@ -95,7 +95,7 @@ public class CreateSonePage extends SoneTemplatePage { */ @Override public boolean isEnabled(ToadletContext toadletContext) { - return true; + return getCurrentSone(toadletContext) == null; } } -- 2.7.4