Skip to content
Snippets Groups Projects
Commit f8f9d020 authored by Thomas Mortagne's avatar Thomas Mortagne
Browse files

XWIKI-22424: Improve attachment filtering

* remove leftover

(cherry picked from commit c02ce784)
parent 10a46977
No related branches found
No related tags found
No related merge requests found
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
import java.io.ByteArrayInputStream; import java.io.ByteArrayInputStream;
import java.io.InputStream; import java.io.InputStream;
import javax.inject.Inject;
import javax.inject.Named; import javax.inject.Named;
import javax.ws.rs.WebApplicationException; import javax.ws.rs.WebApplicationException;
import javax.ws.rs.core.Response; import javax.ws.rs.core.Response;
...@@ -34,7 +33,6 @@ ...@@ -34,7 +33,6 @@
import org.xwiki.rest.internal.Utils; import org.xwiki.rest.internal.Utils;
import org.xwiki.rest.internal.resources.BaseAttachmentsResource; import org.xwiki.rest.internal.resources.BaseAttachmentsResource;
import org.xwiki.rest.resources.attachments.AttachmentResource; import org.xwiki.rest.resources.attachments.AttachmentResource;
import org.xwiki.security.authorization.ContextualAuthorizationManager;
import org.xwiki.security.authorization.Right; import org.xwiki.security.authorization.Right;
import com.xpn.xwiki.XWikiException; import com.xpn.xwiki.XWikiException;
...@@ -49,9 +47,6 @@ ...@@ -49,9 +47,6 @@
@Named("org.xwiki.rest.internal.resources.attachments.AttachmentResourceImpl") @Named("org.xwiki.rest.internal.resources.attachments.AttachmentResourceImpl")
public class AttachmentResourceImpl extends BaseAttachmentsResource implements AttachmentResource public class AttachmentResourceImpl extends BaseAttachmentsResource implements AttachmentResource
{ {
@Inject
private ContextualAuthorizationManager authorization;
@Override @Override
public Response getAttachment(String wikiName, String spaceName, String pageName, String attachmentName) public Response getAttachment(String wikiName, String spaceName, String pageName, String attachmentName)
throws XWikiRestException throws XWikiRestException
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment