From 24a444a35c6b51c1f181c03ffe7e5c31f3d2c80f Mon Sep 17 00:00:00 2001 From: Yuze Fu Date: Wed, 25 Sep 2024 19:17:47 +0900 Subject: [PATCH] feat: allow 1638882 to access sector --- Net.Vatprc.Uniapi/Controllers/SectorController.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Net.Vatprc.Uniapi/Controllers/SectorController.cs b/Net.Vatprc.Uniapi/Controllers/SectorController.cs index 634c818..bbb681b 100644 --- a/Net.Vatprc.Uniapi/Controllers/SectorController.cs +++ b/Net.Vatprc.Uniapi/Controllers/SectorController.cs @@ -29,6 +29,13 @@ public async Task GetPermission() { var user = await DbContext.User.FindAsync(this.GetUserId()) ?? throw new ApiError.UserNotFound(this.GetUserId()); + + // FIXME: This is a temporary solution to allow the user to access the sector + if (user.Cid == "1638882") + { + return new SectorPermissionResponse(true); + } + var controllers = await VatsimService.GetAtcList(); var atc = controllers.FirstOrDefault(c => c.Id.ToString() == user.Cid); if (atc == null)