Don’t get the current Sone, we allow to modify local Sones only.
[Sone.git] / 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) {