From 1f21b84c6142ff3f69ab31e584c32976c5b23bb8 Mon Sep 17 00:00:00 2001 From: Yuze Fu Date: Mon, 11 Nov 2024 17:30:47 +0900 Subject: [PATCH] fix: temp allow all user --- Net.Vatprc.Uniapi/Controllers/SectorController.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Net.Vatprc.Uniapi/Controllers/SectorController.cs b/Net.Vatprc.Uniapi/Controllers/SectorController.cs index 7f27dbe..f0a0204 100644 --- a/Net.Vatprc.Uniapi/Controllers/SectorController.cs +++ b/Net.Vatprc.Uniapi/Controllers/SectorController.cs @@ -39,6 +39,7 @@ public SectorPermissionResponse(bool hasPermission) [HttpGet("current/permission")] public async Task GetPermission() { + return new SectorPermissionResponse(true); var user = await DbContext.User.FindAsync(this.GetUserId()) ?? throw new ApiError.UserNotFound(this.GetUserId());