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 9342c47 commit bbda68aCopy full SHA for bbda68a
src/main/java/com/back/domain/file/service/FileService.java
@@ -166,7 +166,7 @@ private String createFileName(String fileName) {
166
167
// 파일 접근 권한 체크
168
private void checkAccessPermission(FileAttachment fileAttachment, Long userId) {
169
- if (fileAttachment.getUser().getId() != userId) {
+ if (!fileAttachment.getUser().getId().equals(userId)) {
170
throw new CustomException(ErrorCode.FILE_ACCESS_DENIED);
171
}
172
0 commit comments