This commit is contained in:
@@ -54,7 +54,9 @@ public class FileStatsService {
|
||||
}
|
||||
|
||||
private Long protectedUserFiles(List<FileEntity> files, FileType type) {
|
||||
return files.stream().filter(file -> file.getProtectionStatus() == ProtectionStatus.PROTECTED &&
|
||||
return files.stream().filter(file -> file.getStatus() != FileStatus.DELETED &&
|
||||
file.getStatus() != FileStatus.TEMP &&
|
||||
file.getProtectionStatus() == ProtectionStatus.PROTECTED &&
|
||||
file.getMimeType().equals(type.getDisplayName())).count();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user