Skip to content

Commit

Permalink
fix: temp allow all atc center roles
Browse files Browse the repository at this point in the history
  • Loading branch information
xfoxfu committed Nov 9, 2024
1 parent 13da308 commit 29805e7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Net.Vatprc.Uniapi/Controllers/SectorController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ public SectorPermissionResponse(bool hasPermission)
[HttpGet("current/permission")]
public async Task<SectorPermissionResponse> 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());

Expand Down

0 comments on commit 29805e7

Please sign in to comment.