From 29805e76c18391a3e68d501bb2cb2b58bc6a4d67 Mon Sep 17 00:00:00 2001 From: Yuze Fu Date: Sat, 9 Nov 2024 15:34:45 +0900 Subject: [PATCH] fix: temp allow all atc center roles --- Net.Vatprc.Uniapi/Controllers/SectorController.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Net.Vatprc.Uniapi/Controllers/SectorController.cs b/Net.Vatprc.Uniapi/Controllers/SectorController.cs index 7f27dbe..ecd26ae 100644 --- a/Net.Vatprc.Uniapi/Controllers/SectorController.cs +++ b/Net.Vatprc.Uniapi/Controllers/SectorController.cs @@ -39,6 +39,8 @@ public SectorPermissionResponse(bool hasPermission) [HttpGet("current/permission")] public async Task GetPermission() { + // TODO: hotfix for ATC center downtime + return new SectorPermissionResponse(true); var user = await DbContext.User.FindAsync(this.GetUserId()) ?? throw new ApiError.UserNotFound(this.GetUserId());