We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cada69d commit faf53f6Copy full SHA for faf53f6
src/main/java/ru/mystamps/web/service/ImageServiceImpl.java
@@ -50,6 +50,7 @@ public class ImageServiceImpl implements ImageService {
50
51
@Override
52
@Transactional
53
+ @PreAuthorize("isAuthenticated()")
54
public Integer save(MultipartFile file) {
55
Validate.isTrue(file != null, "File must be non null");
56
Validate.isTrue(file.getSize() > 0, "Image size must be greater than zero");
0 commit comments