fix(server): read file permission checks (#3046)

This commit is contained in:
Jason Rasmussen
2023-06-30 12:25:08 -04:00
committed by GitHub
parent ad343b7b32
commit 455a36b0fc
5 changed files with 11 additions and 12 deletions

View File

@@ -42,7 +42,7 @@ export class MetadataService {
}
const sidecarPath = `${asset.originalPath}.xmp`;
const exists = await this.storageRepository.checkFileExists(sidecarPath, constants.W_OK);
const exists = await this.storageRepository.checkFileExists(sidecarPath, constants.R_OK);
if (!exists) {
return false;
}