Don’t get the current Sone, we allow to modify local Sones only.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 17 Sep 2013 13:17:38 +0000 (15:17 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 17 Sep 2013 13:17:38 +0000 (15:17 +0200)
src/main/java/net/pterodactylus/sone/web/EditAlbumPage.java

index c66ae05..3db14d5 100644 (file)
@@ -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) {