From 0d4473da69c37a089f038b86f18c6e1bbc815824 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Mon, 28 Jul 2025 01:41:26 +0800 Subject: [PATCH] :bug: Drive related bug fixes --- DysonNetwork.Drive/Client/src/views/index.vue | 3 +++ DysonNetwork.Drive/Storage/BundleController.cs | 7 +------ 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/DysonNetwork.Drive/Client/src/views/index.vue b/DysonNetwork.Drive/Client/src/views/index.vue index 8916557..7f81ae2 100644 --- a/DysonNetwork.Drive/Client/src/views/index.vue +++ b/DysonNetwork.Drive/Client/src/views/index.vue @@ -52,6 +52,9 @@
+
+ +
> GetBundle([FromRoute] Guid id, [FromQuery] string? passcode) { - if (HttpContext.Items["CurrentUser"] is not Account currentUser) return Unauthorized(); - var accountId = Guid.Parse(currentUser.Id); - var bundle = await db.Bundles .Where(e => e.Id == id) - .Where(e => e.AccountId == accountId) .Include(e => e.Files) .FirstOrDefaultAsync(); if (bundle is null) return NotFound(); @@ -155,4 +150,4 @@ public class BundleController(AppDatabase db) : ControllerBase return NoContent(); } -} \ No newline at end of file +}