From: David ‘Bombe’ Roden Date: Tue, 17 Sep 2013 13:17:38 +0000 (+0200) Subject: Don’t get the current Sone, we allow to modify local Sones only. X-Git-Tag: 0.8.7^2~13 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=0266bbc5aad05e1919129166bcf34cb64411c541;p=Sone.git Don’t get the current Sone, we allow to modify local Sones only. --- diff --git a/src/main/java/net/pterodactylus/sone/web/EditAlbumPage.java b/src/main/java/net/pterodactylus/sone/web/EditAlbumPage.java index c66ae05..3db14d5 100644 --- a/src/main/java/net/pterodactylus/sone/web/EditAlbumPage.java +++ b/src/main/java/net/pterodactylus/sone/web/EditAlbumPage.java @@ -51,7 +51,6 @@ public class EditAlbumPage extends SoneTemplatePage { protected void processTemplate(FreenetRequest request, TemplateContext templateContext) throws RedirectException { super.processTemplate(request, templateContext); if (request.getMethod() == Method.POST) { - Sone currentSone = getCurrentSone(request.getToadletContext()); String albumId = request.getHttpRequest().getPartAsStringFailsafe("album", 36); Album album = webInterface.getCore().getAlbum(albumId, false); if (album == null) {