Skip to content

Commit 59e0433

Browse files
committed
Revert "disallow user without perms to save downloaded image"
This reverts commit f4b6e3d.
1 parent 6ec9c52 commit 59e0433

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/main/java/ru/mystamps/web/controller/SeriesController.java

-6
Original file line numberDiff line numberDiff line change
@@ -217,12 +217,6 @@ public String processInput(
217217
request.removeAttribute(DownloadImageInterceptor.ERROR_CODE_ATTR_NAME);
218218
}
219219

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-
226220
if (result.hasErrors()) {
227221
String lang = LocaleUtils.getLanguageOrNull(userLocale);
228222

0 commit comments

Comments
 (0)