diff --git a/DysonNetwork.Drive/Storage/FileController.cs b/DysonNetwork.Drive/Storage/FileController.cs index d2e8dc4e..45d1bf33 100644 --- a/DysonNetwork.Drive/Storage/FileController.cs +++ b/DysonNetwork.Drive/Storage/FileController.cs @@ -54,7 +54,7 @@ public class FileController( return await ServeRemoteFile(file, fileExtension, download, original, thumbnail, overrideMimeType); } - private (string fileId, string? extension) ParseFileId(string id) + private static (string fileId, string? extension) ParseFileId(string id) { if (!id.Contains('.')) return (id, null); @@ -80,6 +80,9 @@ public class FileController( if (currentUser?.IsSuperuser == true) return true; + // TODO Remove this when the other serivce will mark permission correctly. + return true; + var permission = await db.FilePermissions .FirstOrDefaultAsync(p => p.FileId == file.Id);