Skip to content

Commit

Permalink
Fix for PQA tenant restriction
Browse files Browse the repository at this point in the history
  • Loading branch information
samgibsonmoj authored and carlsixsmith-moj committed Sep 3, 2024
1 parent feca250 commit 6913abe
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class Handler(IUnitOfWork unitOfWork, IMapper mapper) : IRequestHandler<Q
public async Task<Result<EnrolmentQueueEntryDto>> 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<EnrolmentQueueEntryDto>(mapper.ConfigurationProvider)
.FirstOrDefaultAsync(cancellationToken);

Expand Down

0 comments on commit 6913abe

Please sign in to comment.