Skip to content

Commit

Permalink
fix: temp allow all user
Browse files Browse the repository at this point in the history
  • Loading branch information
xfoxfu committed Nov 11, 2024
1 parent 1534436 commit 1f21b84
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Net.Vatprc.Uniapi/Controllers/SectorController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public SectorPermissionResponse(bool hasPermission)
[HttpGet("current/permission")]
public async Task<SectorPermissionResponse> GetPermission()
{
return new SectorPermissionResponse(true);
var user = await DbContext.User.FindAsync(this.GetUserId()) ??
throw new ApiError.UserNotFound(this.GetUserId());

Expand Down

0 comments on commit 1f21b84

Please sign in to comment.