This commit is contained in:
2021-03-12 21:54:48 +00:00
parent 5c6cf1939b
commit 0c0169d6b2
2 changed files with 4 additions and 4 deletions

View File

@@ -665,7 +665,7 @@ namespace AyaNova.Api.Controllers
}
var u = await ct.User.FirstOrDefaultAsync(z => z.Id == UserId);
var u = await ct.User.FirstOrDefaultAsync(z => z.Id == id);
if (u == null)//should never happen but ?
return StatusCode(403, new ApiNotAuthorizedResponse());