feat: protect feedback screenshots
This commit is contained in:
@@ -22,6 +22,7 @@ public class GetMyFeedbackHandler(AppDbContext dbContext)
|
||||
|
||||
FeedbackReportDto? report = await dbContext.FeedbackReports
|
||||
.Include(candidate => candidate.Tags)
|
||||
.Include(candidate => candidate.Screenshot)
|
||||
.Where(candidate => candidate.Id == id && candidate.ReporterUserId == reporterUserId)
|
||||
.Select(candidate => candidate.ToDto())
|
||||
.SingleOrDefaultAsync(ct);
|
||||
|
||||
Reference in New Issue
Block a user