From 36df3f7dd433bc72dbd2552803a97f3378f80923 Mon Sep 17 00:00:00 2001 From: samgibsonmoj Date: Tue, 3 Sep 2024 17:34:17 +0100 Subject: [PATCH] Fix for PQA tenant restriction --- .../Features/QualityAssurance/Queries/GetPqaEntryById.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Application/Features/QualityAssurance/Queries/GetPqaEntryById.cs b/src/Application/Features/QualityAssurance/Queries/GetPqaEntryById.cs index 5c031ecd..c8d299fa 100644 --- a/src/Application/Features/QualityAssurance/Queries/GetPqaEntryById.cs +++ b/src/Application/Features/QualityAssurance/Queries/GetPqaEntryById.cs @@ -20,7 +20,7 @@ public class Handler(IUnitOfWork unitOfWork, IMapper mapper) : IRequestHandler> Handle(Query request, CancellationToken cancellationToken) { var entry = await unitOfWork.DbContext.EnrolmentPqaQueue - .Where(a => a.Id == request.Id && request.CurrentUser!.TenantId!.StartsWith(a.TenantId)) + .Where(a => a.Id == request.Id && a.TenantId.StartsWith(request.CurrentUser!.TenantId!)) .ProjectTo(mapper.ConfigurationProvider) .FirstOrDefaultAsync(cancellationToken);