diff options
Diffstat (limited to 'backend')
-rw-r--r-- | backend/api/api/Services/FileService.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/api/api/Services/FileService.cs b/backend/api/api/Services/FileService.cs index 6ef74ca1..e5b7945f 100644 --- a/backend/api/api/Services/FileService.cs +++ b/backend/api/api/Services/FileService.cs @@ -28,7 +28,7 @@ namespace api.Services public string GetFilePath(string id, string uploaderId) { FileModel file; - if (_dataset.Find(x=>x.fileId==id && x.isPublic==true).FirstOrDefault()!=null) + if (_dataset.Find(x=>x.fileId==id && (x.isPublic==true ||x.accessibleByLink==true)).FirstOrDefault()!=null) file = _file.Find(x => x._id == id).FirstOrDefault(); else file = _file.Find(x => x._id == id && x.uploaderId == uploaderId).FirstOrDefault(); |