We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c0f53c4 commit 5025118Copy full SHA for 5025118
src/main/java/ru/mystamps/web/controller/SeriesController.java
@@ -217,12 +217,6 @@ public String processInput(
217
request.removeAttribute(DownloadImageInterceptor.ERROR_CODE_ATTR_NAME);
218
}
219
220
- // To ensure that user without permission can't save downloaded image, we clear this image
221
- // TODO: try to not download file in the interceptor if user doesn't have permissions
222
- if (!SecurityContextUtils.hasAuthority(Authority.DOWNLOAD_IMAGE)) {
223
- form.setDownloadedImage(null);
224
- }
225
-
226
if (result.hasErrors()) {
227
String lang = LocaleUtils.getLanguageOrNull(userLocale);
228
0 commit comments